@rfprodz/client-d3-charts
Version:
Angular chart components based on D3JS (https://d3js.org).
26 lines (25 loc) • 607 B
TypeScript
import type * as d3 from 'd3';
export interface IBarChartDataNode {
title: string;
value: number;
}
export type TBarChartData = IBarChartDataNode[];
export interface IBarChartOptions {
chartTitle: string;
width: number;
height: number;
margin: {
top: number;
right: number;
bottom: number;
left: number;
};
transitionDuration: number;
xAxisPadding: number;
xAxisTitle: string;
yAxisTitle: string;
yAxisTicks: number;
displayAxisLabels: boolean;
labelTextWrapWidth: number;
color: d3.ScaleOrdinal<string, string>;
}