This is a migrated thread and some comments may be shown as answers.

Logarithmic scale barchart

1 Answer 10 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 18 Feb 2016, 04:13 PM
Hello Nikolai,

I hope you are doing well!

Im currently working again on the project I showed you during our training at Ometa. I have a question about the logarithmic scaling of the valueAxis of a bar chart. In the screenshot below you can see the results however it is not presented logical to our key-users. They are excepting the bars to start at 0.1 even the longest ones.

In screenshot 2 you can see what I mean however it seems that only values greater than 1 are presented on the right side of the chart and values smaller than 1 are presented on the left side of the chart.
Would it be possible to have all the bars starting on the left side of the chart even if they are smaller than 1?

Thanks in advance!!

Kind regards

1 Answer, 1 is accepted

Sort by
0
EZ
Top achievements
Rank 2
answered on 18 Feb 2016, 11:09 PM

You can use the axisCrossingValues property of the valueAxis to make it cross at 0.1:

valueAxis: {
    type: "log",
    axisCrossingValues: [0.1],
    minorGridLines: {
        visible: true
    }
}

 

DOJO

Tags
Charts
Asked by
Terry
Top achievements
Rank 1
Answers by
EZ
Top achievements
Rank 2
Share this question
or