How to manage y-axis values of high chart - highcharts

I am having data values which I am showing in high chart. But there neither negative value nor decimal value in my data , but than also my y-axis values have decimal value and start value of chart is -50 which need to be 500.
Kindly suggest how can i correct this issue , thanks in advance.

Set min and max for yAxis. Then to prevent decimals set allowDecimals to false.
Refs:
http://api.highcharts.com/highcharts#yAxis.allowDecimals
http://api.highcharts.com/highcharts#yAxis.min
http://api.highcharts.com/highcharts#yAxis.max

Related

Graphs in Google Sheets: Negative minimum limit for vertical axis

In Google Sheets, I've made a line chart.
Since there are some negative values, the graph needs to dip below zero.
However, the minimum value is about -480,000 and the automatic lower-end of the vertical axis is -2,500,000. No problem, I say: I'll just change the vertical axis minimum value to -500,000 and the problem will be fixed.
Turns out, the chart ignores any negative values bigger than -2,500,000 I provide for the vertical axis minimum value. If I provide zero or a positive value or a negative value smaller than -2,500,000 (e.g. -3,000,000), this is duly reflected in the chart. But like a teenager, it pretends not to listen to me when the minimum value is between -2,500,000 and 0.
Is this a (known) bug in Google Sheets, or am I missing something basic?
P.S. It seems to be a bug, because the minimum value starts working within that range if I also provide a maximum value.

How to avoid overlapping of X-axis values and Y-axis values in Radar chart?

I am trying to show the Radar chart with 6 X-axis labels. Currently the name of the X-axis labels and its values are getting overlapped. How can we avoid the overlapping of X-axis labels and values?
I am using Charts for Radar chart.
Please find the screenshot here:
Here total invested and Total returns are getting overlapped with their respective values.
The max values for your axes is 100, but you have graphed values exceeding that maximum. As a result, value labels are overlapping with axis labels.

Origin of Min/Max values fed to tickPositioner - bug?

I noticed that min/max values that are fed to a custom tickPositioner function are not the same as min/max values of the data set. For example, my max value when chart is downloaded as CSV is 353116.2853, but max value provided to the tickPositioner is 390819.334993875.
Similarly, min value in the dataset is -400944.7087, but tickPositioner receives
-438647.758392375.
Is this a bug?

I need the Y axis values in integer instead of decimal values in Dynamic Chart

I am using Dynamic chart in Hightcharts.
I want integer values in Y Axis instead of decimal values.
Can any one guide me where I can made changes to make this values integer.
Any help/suggestion would be appreciated.
Highcharts.numberFormat(this.y, 0) just removed decimal point!

highcharts x-axis datetime value for one week coming wrong

im using highcharts for reports the x-axis
type:datetime and tickinterval:23 * 24 * 3600 * 1000
, i have another dropdown where in
i can select the CurrentYear,Past 30 days,Previous Month, Current Month,Past 7 days, Previous week , CurrentWeek report the data comes
according to the selected value for CurrentYear the x-axis shows values jul'13,Aug'13,Sep'13...Mar'14 which is right since the tickinterval
is 1 month , but as soon as i select the one week report / current week report x-axis shows no point on it..i want atleast two point on
the x-axis. i thought of using min and max for the same but can't use since the values of min and max will change according to the
weeks.so is there any logic that will make my x-axis value constant to say 6 values or 5values of dates
In general, instead of setting tickInterval, try to set tickPixelInterval - Highcharts will try to fix tick positions to fit pixel interval between them. It won't be exactly the same distance as you set in tickPixelInterval but something really close.
You have also another solution, when you set new data from dropdown you can also call: chart.xAxis.update({ tickInterval: newvalue }) so for each dropdown value, you can set new interval, which workaround your issue.

Resources