wv-chart
Purpose
<wv-chart/>
. Used to render charts by using the Chart JS Javascript library.
Properties
name | description |
---|---|
datasets |
object type: default value: is required: Data for the charts, background and border colors provided in a specific format needed by the library |
height |
object type: default value: is required: If provided, it will be added as a CSS style height value of the chart's wrapper element. |
id |
object type: default value: is required: Html ID you may need to set to the rendered element |
labels |
object type: default value: is required: Labels corresponding to the dataset values |
show-legend |
object type: default value: is required: Whether to render the chart's legend |
type |
object type: default value: is required: The type of the chart that needs to be rendered. Options are: Line, Bar, Pie, Doughnut, Area, HorizontalBar |
width |
object type: default value: is required: If provided, it will be added as a CSS style width value of the chart's wrapper element. |
Example
<wv-chart type="@ErpChartType.Line" datasets="@Datasets"></wv-chart>