You must be logged in to post your query.
Home › Forums › StockChart Support › Speedo Meter Chart
Tagged: Speedo Meter Charts
Hi Team,
I am looking for any implementation of speedo meter chart using canvasjs, There is one example available but in that example i cannot set the maximum value to the chart, looking for the answer as soon as possible.
@m-usman,
You can customize a DIV using CSS to visualize the needle as shown in the code snippet below –
HTML <div class="speedometer__needle js-needle"></div>
<div class="speedometer__needle js-needle"></div>
CSS
.speedometer__needle { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: transparent; top: 72%; left: 50%; transition: .3s ease-in-out;
To position the needle at a specific point you can use CSS transform property. Please check the code snippet below –
$( '.js-needle' ).css({ 'transform' : 'translate(-50%, -50%) rotate('+ (tickValue * 18.0) + 'deg)' });
Please check this JSFiddle for a working example which meets your requirement.
— Thangaraj Raman Team CanvasJS
You must be logged in to reply to this topic. Login/Register