@nativescript-community/ui-chart
Version:
A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
40 lines (38 loc) • 1.76 kB
TypeScript
import { BarLineScatterCandleBubbleData } from './BarLineScatterCandleBubbleData';
import { BarDataSet } from './BarDataSet';
import { BarEntry } from './BarEntry';
/**
* Data object that represents all data for the BarChart.
*
*/
export declare class BarData extends BarLineScatterCandleBubbleData<BarEntry, BarDataSet> {
/**
* the width of the bars on the x-axis, in values (not pixels)
*/
barWidth: number;
/**
* if set to true, bar keep the same size with zoom scale
*/
fixedBarScale: boolean;
/**
* Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries.
* Previously set x-values of entries will be overwritten. Leaves space between bars and groups as specified
* by the parameters.
* Do not forget to call notifyDataSetChanged() on your BarChart object after calling this method.
*
* @param fromX the starting polet on the x-axis where the grouping should begin
* @param groupSpace the space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1
* @param barSpace the space between individual bars in values (not pixels) e.g. 0.1 for bar width 1
* @param centered whether to group bar around x values or between (default is false)
* @param groupCondensed whether to condensed grouped bar (no space for "0" bars)
*/
groupBars(fromX: any, groupSpace: any, barSpace: any, centered?: boolean, groupCondensed?: boolean): void;
/**
* In case of grouped bars, this method returns the space an individual group of bar needs on the x-axis.
*
* @param groupSpace
* @param barSpace
* @return
*/
getGroupWidth(groupSpace: any, barSpace: any): any;
}