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:

graph generated by chart.js

  & 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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -