javascript - y-axis of chart.js charts is scrambled -
So for the reason that I am generating graphs with chart.js, the Y-axis is fully scalable There is no point! Does anyone know how to fix this? Here is my code:
& lt; script type = "text / javascript" & gt; Var chartDataSource2 = {{json_encode ($ micromarket_participants)}}; DxChart ({Data source: Chart data source 2, General service settings: {argumentField: 'id'}, series: [{name: 'minSingleCareFee', valueField: 'minSingleCareFee') {$ (function () ($ (function () {$ ("# chartContainer2") , Type: 'bar'},]});}) & lt; / Script & gt; & Lt; div id = "chartContainer1" style = "height: 400px;" & Gt; & Lt; / Div & gt;
im just having the same and i found out what the problem is
Error numbers can be in the data source, pass the array to any URL without any chart.js function
For example, data source = [{time: "08: 00 ", a: 10, b: 10}];
but not data source = [{time: "08:00", a: "10", b: "10"}];
Then the y-axis will come back! :)
Comments
Post a Comment