como puedo crear graficas combinadas de barras y lineas con las charts de corneston
There are not controls for this, but it’s something we plan along with Area, Bubble, and Map Chart types. I can give you a little more involved alternative.
Create a bar chart. Create two datasets. Your second dataset is your line chart. Add the following into Custom JS. When you save and reload Cornerstone you will be to edit the second dataset as if it were a line. Let me know if this helps!
https://www.chartjs.org/docs/latest/samples/other-charts/combo-bar-line.html For reference
window.csGlobal.csHooks.filter("cs_charts_config", function(config) {
config.data.datasets[0].order = 1;
config.data.datasets[1].type = "line";
config.data.datasets[1].order = 0;
return config;
});
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.