Changed the "series" property of the HighChartsNGConfig interface to be of type HighchartsIndividualSeriesOptions[].

This commit is contained in:
Adam Goodwin
2016-04-03 17:34:42 +12:00
parent d969b903d1
commit b505af545a
2 changed files with 12 additions and 4 deletions
+11 -3
View File
@@ -20,9 +20,17 @@ class AppController {
},
plotOptions: {}
},
series: [{
data: [10, 15, 12, 8, 7]
}],
series: [
{
data: [10, 15, 12, 8, 7]
},
{
data: [[0, 10], [1, 15], [2, 12], [3, 8], [4, 7]]
},
{
data: [{ name: "A", y: 10 }, { name: "B", y: 15 }, { name: "C", y: 12 }, { name: "D", y: 8 }, { name: "E", y: 7 }]
}
],
title: {
text: 'My Awesome Chart'
},
+1 -1
View File
@@ -10,7 +10,7 @@ interface HighChartsNGConfig {
//The below properties are watched separately for changes.
//Series object (optional) - a list of series using normal highcharts series options.
series?: number[]|[number, number][]| HighchartsDataPoint[] | {data:number[];}[];
series?: HighchartsIndividualSeriesOptions[];
//Title configuration (optional)
title?: {
text?: string;