Home Forums StockChart Support Speedo Meter Chart

Speedo Meter Chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #36995

    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.



    You can customize a DIV using CSS to visualize the needle as shown in the code snippet below –

    <div class="speedometer__needle js-needle"></div>


    .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.

    Speedometer Chart

    Thangaraj Raman
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.