You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the config now saving to a database. the example string is
"{"chart":{"type":"area"},"xAxis":[{"type":"category"}],"yAxis":[{}],"plotOptions":{"series":{"dataLabels":{"enabled":true},"marker":{"enabled":false}}},"title":{"text":"sdfsdfsd"}}"
When I then use this script it doesn't show the title for example or change it to an area graph.
<!!!!!!!!!script>
var cd ;
document.addEventListener("DOMContentLoaded", function () {
var configdata = @Html.Raw(@configedchart);
var chart = new ec({
element : document.getElementById('container'),
dataUrl : '/chart/?QueryData=@chart2.SQLDataID&Queue=@chart2.QueueID',
config : configdata,
dataTab : false,
templatesTab: false,
customiseTab: false,
UIMode: 'viewer'
});
cd = configdata;
chart.setConfig(configdata);
});
<!!!!!!!!!/script>
Any suggestions? Thanks
The text was updated successfully, but these errors were encountered:
configData needs to be in JSON-format, not stringified, so I guess you need to do something like:
var configdata = JSON.parse(@Html.Raw(@configedchart));
and it should work.
It's also better for you to download the latest version of the code as the option UIMode didn't make it to production, its name changed to chartTab (see #57).
Hi.
I have the config now saving to a database. the example string is
"{"chart":{"type":"area"},"xAxis":[{"type":"category"}],"yAxis":[{}],"plotOptions":{"series":{"dataLabels":{"enabled":true},"marker":{"enabled":false}}},"title":{"text":"sdfsdfsd"}}"
When I then use this script it doesn't show the title for example or change it to an area graph.
<!!!!!!!!!script>
var cd ;
<!!!!!!!!!/script>
Any suggestions? Thanks
The text was updated successfully, but these errors were encountered: