@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.
41 lines (40 loc) • 2.07 kB
TypeScript
import { Color } from '@nativescript/core';
import { ScatterShape } from '../charts/ScatterChart';
import { IScatterDataSet } from '../interfaces/datasets/IScatterDataSet';
import { ChevronDownShapeRenderer } from '../renderer/scatter/ChevronDownShapeRenderer';
import { ChevronUpShapeRenderer } from '../renderer/scatter/ChevronUpShapeRenderer';
import { CircleShapeRenderer } from '../renderer/scatter/CircleShapeRenderer';
import { CrossShapeRenderer } from '../renderer/scatter/CrossShapeRenderer';
import { SquareShapeRenderer } from '../renderer/scatter/SquareShapeRenderer';
import { TriangleShapeRenderer } from '../renderer/scatter/TriangleShapeRenderer';
import { XShapeRenderer } from '../renderer/scatter/XShapeRenderer';
import { Entry } from './Entry';
import { LineScatterCandleRadarDataSet } from './LineScatterCandleRadarDataSet';
export declare class ScatterDataSet extends LineScatterCandleRadarDataSet<Entry> implements IScatterDataSet {
/**
* the size the scattershape will have, in density pixels
*/
scatterShapeSize: number;
/**
* Sets the ScatterShape this DataSet should be drawn with. This will search for an available IShapeRenderer and set this
* renderer for the DataSet.
*/
set scatterShape(shape: ScatterShape);
/**
* Renderer responsible for rendering this DataSet, default: square
*/
shapeRenderer: SquareShapeRenderer;
/**
* The radius of the hole in the shape (applies to Square, Circle and Triangle)
* - default: 0.0
*/
scatterShapeHoleRadius: number;
/**
* Color for the hole in the shape.
* Setting to `ColorTemplate.COLOR_NONE` will behave as transparent.
* - default: ColorTemplate.COLOR_NONE
*/
scatterShapeHoleColor: string | Color;
constructor(yVals: any, label: any, xProperty?: any, yProperty?: any);
static getRendererForShape(shape: ScatterShape): ChevronDownShapeRenderer | ChevronUpShapeRenderer | CircleShapeRenderer | CrossShapeRenderer | SquareShapeRenderer | TriangleShapeRenderer | XShapeRenderer;
}