简体   繁体   中英

Gauge chart Highchart dial style issue

I am facing a wierd issue in gauge chart dial.

I want dial like this

在此处输入图片说明

However, I am not getting exactly like this.

plotOptions: {
        gauge: {
            dial: {
                radius: '100%',
                backgroundColor: 'gray',
                baseWidth: 20,
                topWidth: 1,
                baseLength: '3%', // of radius
                rearLength: '10%'
            }
        }
    }

You can see my efforts JSFiddle

I want bottom of it in round shape and also I want that black dot to be removed.

Thanks in advance.

This is my solution:

 plotOptions: {
   gauge: {
     dial: {
       radius: '70%',
       backgroundColor: 'gray',
       baseWidth: 20,
       topWidth: 1,
       baseLength: '3%', // of radius
       rearLength: '0%'
     }, 
     pivot: {
       radius: 10,
       backgroundColor: 'gray'
     }
  }
}

The black dot will not be removed but enlarged and colored gray so that serves as the round back of the dial. I am afraid the exact tear-drop-shape of the dial in your image may be impossible to achieve with highcharts.

http://jsfiddle.net/doc_snyder/6r654hr9/3/

http://jsfiddle.net/6r654hr9/1/ i have editing in your jsfiddle file

http://jsfiddle.net/6r654hr9/4/ Check and try this link this will work fine for you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM