score:21
Accepted answer
I found a solution that works in case anybody googles this. Here is the thing : I was using chartjs version 1, in which the update() function doesn't work in all cases, especially when you are trying to change the options of a chart. Therefore, switching to version 2, allowed me to use update() properly with changing the options such as :
myChart.options.scales.yAxes[0].ticks.min = someValue;
Here is a fiddle to demonstrate the solution to my problem in case anybody faces the same issue: http://jsbin.com/bamemuliyu/3/edit?html,js,output
Source: stackoverflow.com
Related Query
- Dynamically update the options of a chart in chartjs using Javascript
- I am using chartjs node canvas to render a chart however the graph options are being ignored
- Dynamically update values of a chartjs chart
- dynamically update the scale type of chartjs graph
- Change the background color of tooltip dynamically using chart color
- How to update a chart using VueJS and ChartJS
- How to get the data attribute of the canvas chart created using chartjs
- Chartjs Radar chart - How to dynamically highlight one of the gridlines at a specific point
- chartjs how to update dynamically data from database(Chartjs cant get the data)
- Using number/text input field to set the data values in ChartJs stops the chart from being displayed
- How to update the chart dynamically with vue-chartjs?
- How to display the values inside the pie chart of PrimeNG (chart) using JavaScript or Angular
- Dynamically update chart in chartJs
- Remove redundant legends on the chart using generateLabels with ChartJS v3
- Is it possible to generate multiple chart in Laravel using chartjs ? If possible please give the solution
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- ChartJS fails to render one of the lines in cartesian chart following update after change to max Y axis label value
- Angular 4: Different color for bar in bar chart dynamically using ChartJS
- Update Chart in Javascript using Chart.js
- Create chart using one of the given javascript libraries
- How to add text inside the doughnut chart using Chart.js?
- Chartjs random colors for each part of pie chart with data dynamically from database
- Moving vertical line when hovering over the chart using chart.js
- Display line chart with connected dots using chartJS
- How to add text in centre of the doughnut chart using Chart.js?
- TypeError: Cannot read property 'defaults' of undefined when using the react wrapper of chartjs
- ChartJs bar chart - keep bars left instead of equally spread across the width
- Border radius for the bar chart in ChartJS
- Show data dynamically in line chart - ChartJS
- How to access labels array using chart plugin (Chart.pluginService.register) in Chartjs 2.x?
More Query from same tag
- ng2charts using borderColor with array value
- Line chart is drawing before first point in Chart.js
- Create chart in SPA(Aurelia) with MVVM pattern
- Getting charts.js to read from Google Sheet JSON data
- Is it possible to generate multiple chart in Laravel using chartjs ? If possible please give the solution
- Chart js 2 bars with one customize label on top
- How to use Real time chart in react?
- Change Angular js charts.js chart type dynamically
- How to make ng2-Chart Scrollable for large amount of data sets?
- Chartjs defaults deprecation warning
- ChartJS AJAX load labels and data
- How to set the xAxes min and max values of time cartesian chart in Chart.js
- Chartjs draw line chart where line go back and forth (by chronological order)
- How to add text inside the doughnut chart using Chart.js version 3.2.1
- Charts.js in Django: Charts cannot appear
- New datases do not shows Chart js
- Chartjs show labels but not ticks
- How to get ChartJs object from dynamically created chart
- Hiding legend in PrimeNG
- Chart.js - Same min and max value of two charts
- How to dynamically set ChartJs line chart width based on dataset size?
- Why won't this html page run, Devexpress documentation ChartJS
- Chart js options not changing chart
- Grouped bar charts each group different level in chart.js
- Chart.js multi line chart that has different labels
- Set max value for each label with Chart.js
- Chart.js piechart, only have border on the outside of arc
- subset stacked bars chart
- Chartjs in format Line is full points
- Chart.js wont display normal chart