Better support for events in charts
Creating complicated charts is often not possible using the Web designer, so we have to revert to using workflows. This works fine for the most part, but support for events could be improved.
For instance, considering this chart definition with a event, will call the workflow when clicked, but the workflow input argument context is the HTML DOM element that was clicked, and not the data-point.
{
chart: "the-chart-id",
definition: {
chart: {
type: "pie"
},
title: {
text: "Title"
},
series: [$data.result],
plotOptions: {
pie: {
events: {
click: {
name: "workflow.run",
arguments: {
id: "559c143f-cc5f-40e6-9291-5942253f680d",
inputs: {
myInput: "Hi"
}
}
}
}
}
}
}
}Depending on where exactly was clicked (a pie section, the associated label, or the ‘shadow’ circle just outside the pie), different DOM elements are passed in.
As far as I know, HighCharts natively passes the datapoint in an event parameter, so could we have that as well in VertiGIS Studio?
4
Vous devez vous connecter pour laisser un commentaire.
Commentaires
0 commentaire