score:5
Accepted answer
Well, no one answered, but I managed to do it. In case anyone needs it:
Using chartist:
var data = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
series: [
[5, 2, 4, 2, 0]
]
};
var chart = new Chartist.Bar('#results', data);
chart.on('draw', function(d) {
if(d.type === 'bar') {
d.element.animate({
y2: {
begin: 0,
dur: 5000*d.series[d.index]/Math.max.apply(null,d.series),
from: d.y1,
to: d.y2,
easing: Chartist.Svg.Easing.linear
}
});
}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/chartist/0.10.1/chartist.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/chartist/0.10.1/chartist.min.css" rel="stylesheet"/>
<div class="ct-chart ct-perfect-fourth" id="results"></div>
Source: stackoverflow.com
Related Query
- How to make bar chart animation where all bars grow at the same speed?
- Chart js 2.8 - How to make bars grow at the same speed?
- How to show tooltip value of all data falling on the same axis in chart js?
- how to highlight the bars in stacked bar chart of chart.js on clicking a legend
- Chartjs: How to programatically remove (unhighlight or make inactive) all the active points on chart
- How to reduce the gap between bars on bar chart
- Chart.js Bar Chart: How to remove space between the bars in v2.3?
- Chart.js Bar Chart - how to chart bars from 0
- ChartJs bar chart - keep bars left instead of equally spread across the width
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- How to have solid colored bars in angular-chart bar chart
- how to make a chart.js bar chart scrollable
- PrimeNg bar chart how to show a label for the y-axis
- How can I datalabels and Sum display in the same time on a stacked bar
- Chart.js bar chart mouse hovering highlights all the datasets instead of just the selected one
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- PrimeNg bar chart how do I hide the bar labels?
- how to customize tool tip while mouse go over bars on Chart js bar chart
- ChartJS: how to make a bar chart with a horizontal guideline:
- Chart.js: How to get x-axis labels to show on top of bars in bar chart
- How to use set the color for each bar in a bar chart using chartjs?
- chart.js: How do I make the radar chart axis labels bigger?
- How to draw border all the way around bar element
- Chart JS, ng2-Charts - How to make the label to the right of pie chart instead on top?
- how can i use chart.js to create a chart that has one time series line and one linear line on it at the same time?
- How to make the chart smaller than its container
- Can the colors of bars in a bar chart be varied based on their value?
- How do you make a progressive line chart with time as the X axis?
- Chart.js 3.5: linear gradient doesn't apply properly when multiple bars in the same chart
- How to make bar chart cover multiple labels?
More Query from same tag
- How to add title inside doughnut chart in Angular Chart?
- chartjs is issue with large amount data
- Vue Chart.js Doughnut Chart with rounded and spaced arcs (vue3-chart-v2)
- Inserting Graphs into DomPDF
- Gradient color for each bar in a bar graph using ChartJS
- Chartjs v2.7 - combo chart with time-series (financial) data; bar width's are irregular
- (Laravel) How to pull data from API Controller so that it will display in vue-chartjs
- how to highlight the bars in stacked bar chart of chart.js on clicking a legend
- How to send data from struts2 to a javascript function to draw a chart
- Chart.JS using Angular.JS on JSFiddle
- How to Update 2 dataset for 2 lines in a CharJS line graph?
- Unable to get the expected legend shown in chart js
- ChartJs: x-axes min and max value not working
- Chart.js move x axis labels to the right
- Vue 2: How to unit test component that uses Chart.js (vue-chart-3)
- How to customize chart using chartJs?
- How to create a charts in Razor Pages pulling data from the database?
- How can I user microseconds in ChartJs?
- Hide Y-axis labels when data is not displayed in Chart.js
- chart js how do I only show just the low/high dots on line chart?
- Show "No data" in angular-chartjs line graph
- Chart.js: changing tooltip template
- The chart list is not showing
- Chart.js line split color
- ChartJS bar not showing up for simple data points
- Adding Vertical scroll bar in a bar-chart (chartjs)
- Chart.js - Is it possible to have two y axis with positive values one above the other?
- chartjs undefined length when using 2 datasets
- Any way to make the y-axis border longer in chart.js?
- How to change format of DateTime reading into chart.js chart?