score:1
Accepted answer
finally i solved with a workaround .. using window settimeout() method:
var ctx = $("#mychart");
var mychart = new chart(ctx, chart);
function alertfunc (chart) {
chart.options.sort = true;
chart.update();
chart.options.sort = false;
}
window.settimeout(function () { alertfunc(mychart); }, 2000)
score:0
i had a same problem. fixed it by change animation.duration
from 0
to 0.1
:
chart.options.animation = {
duration: 0.1,
...
}
Source: stackoverflow.com
Related Query
- Chart Piechart in only show percentage on hover but it shows data and label with percentage both i just want to show percentage only percentage
- VueJS + Chartjs - Chart only renders after code change
- Chart.js animation triggered only on hover?
- How to limit chart JS hover to take only one value from each line chart when zoomed out?
- How to clear a chart from a canvas so that hover events cannot be triggered?
- line chart with {x, y} point data displays only 2 values
- chartjs show dot point on hover over line chart
- Detecting hover events over parts of a chart using Chart.js
- How to display value of only one datapoint in line chart
- Changing cursor to pointer on Chart.js bar chart when hover (mousemove) event is disabled?
- Chart looks only grey, does not show the color - Chartjs,discordjs
- Display a limited number of labels only on X-Axis of Line Chart using Chart.js
- Chart.js tooltip hover customization for mixed chart
- Draw a horizontal and vertical line on mouse hover in chart js
- Chartjs - show elements in all datasets on hover using bar chart
- Remove the label and show only value in tooltips of a bar chart
- ChartJS - Line chart issue with only 1 point
- Chart Js Show the old data on mouse hover
- ChartJs line chart - display permanent icon above some data points with text on hover
- Chart js shows old data on mouse hover
- Drawing line chart in chart.js placing dots only when value changes
- ChartJs Bubble chart - on hover bubble becomes too big
- Chart disappears just after finishing animation
- How can I trigger the hover mode from outside the chart with charts.js 2?
- How to make bar chart animation where all bars grow at the same speed?
- Chart.js - How to show loading animation before plotting chart
- ChartJS Doughnout Chart Pie Offset on Hover
- chart js with angular2 loading dynamic data only after zoomin
- Show chart.js animation only when user scroll on the specific DIV
- Chart JS not showing On hover with small data
More Query from same tag
- How to update a chart taking by querying a database?
- special characters in title of charts of Charts Js
- Data Visualization DataTables.js using chart.js
- ChartJS v2: how to remove strange line in Line Chart
- ng2-charts & chart.js - Change background color
- Group Chart with multiple layers in ChartJS
- y axis Formatting with Metric prefix 1000=> 1k Chart.js
- Convert charts from vue-chartjs to a PDF
- How to add legend on chart js annotation
- How can i get the Chart JS Bar Graph Bar Label and Value on click?
- ASP.NET Core Razor Pages - Get List Data to Display on Chart.js Graph
- ChartJs 2.0 How do I obtain point information being clicked upon?
- Why is chart.js canvas not respecting the padding of the container element?
- ChartJS doughnut legend click
- Limit data in Chart.js with Flask/SQLAlchemy in python
- Cannot change the color of column chart according to its value
- Return 0 when some information DOESN'T EXIST (not when exists and return null)
- How to hide row in chartJS when filtering?
- Multi Level Color in Doughnut Chart in ng2-charts
- How to get x-axis value in chart as string?
- How can I trigger the hover mode from outside the chart with charts.js 2?
- Angular: chart.js chart is not displaying
- How to format the left legend on chartjs
- Chart JS axes extension
- Chart.js - creating time series freqency chart with JSON data
- Chartjs create chart with big data and fixed labels
- Can I add some variables to my chart.js in page know that variables?
- Angular Chartjs How to make it reactive to data change?
- how does this javascript recolor the doghnut?
- Chart.js - style legend: smaller circles