Trying to visualize ratings based on their type is proving to be difficult as I can't seem to figure out how to group the series according to types.
The available chart options are:
$scope.chartOptions = {
dataSource: data,
commonSeriesSettings: {
argumentField: "ratingDate"
},
series: [
{ valueField: "score", group: "Recommend", color: '#66cc33' },
{ valueField: "score", group: "Service", color: '#35a2f4' },
{ valueField: "score", group: "Product", color: '#ef4e3a' },
{ valueField: "score", group: "Experience", color: '#fea000' }
],
argumentAxis: {
grid: {
visible: true
},
argumentType: 'datetime'
},...
The series option lacks a group
feature, which is something I wish it had so I could have individual series for Service scores over time, Product scores over time, etc.
Currently, I'm getting 4 duplicated series with different colors. Here is a fiddle
The documentation doesn't provide information on grouping like this, so I'm wondering if anyone has encountered and resolved a similar issue?
Perhaps there's a grouping function where I can return truMetric == "Recommend"?
My sample data is structured as follows:
var data =
[
{"clientId": 100052, "questionId": 10000, "description": null, "truMetric": "Recommend", "questionCategory": "Recommend", "score": 7.0, "percentageRating": 7.0, "totalNumberOfRatings": 8, "ratingDate": "2014-04-01T00:00:00Z", "categoryId": 10000},
...
];