Uniform scaling on y axis using google chart API - salesforce

I am working on stack bar chart using google API. I am facing scaling issue on y axis. I have set the minimum value 0 and max 200000 and also set ticks for the graph at the interval of 20000.
My output shows large bar for first tick i.e 20000 but after then its very small:

Related

Custom X-axis label formatting in Winform Chart Control

I am plotting graph with numeric value on Y axis and Date time value on X axis in windows forms chart control. I am setting X axis scale "IsLogarithmic" to true and i am getting the graph as shown in the image ...
I want to set the label formatting of X axis in such a way that it shows me 10^1, 10^2, 10^3 and so on...
Any idea or help will be appreciated.

OxyPlot WPF- Find Y value from X-Axis value

I am trying to find Y-Axis value from X-Axis but so far no luck . My graph is plotted with 10-15 points with smooth curve set to true. Now what I need to locate is probable value of Y for any given x-value. Slimier to what occurs on click of graph (i think its nearest value displayed on tracker). Please note that I cant use tracker and click events. X-axis value will be provided from external input.
sample image
http://i.stack.imgur.com/jMwJo.png

JFreeChart: Logarithmic Axis Tick Labels missing

I am using JFreeChart to make XYLineCharts with a Logarithmic y-axis but am facing an issue that I am unable to resolve.
My x, y values are very low in some cases (in one such case, the y-axis values for the dataset range between 4.5e-8 to 1.7). I plot these values on a XYLineChart using a Logarithmic Axis for the y-axis (and using LogAxis.createLogTickUnits(Locale.ENGLISH) and .setExpTickLabelsFlag(true) on the y-axis to create the exponential tick units). I set my range's bounds from 4.5e-8 to 1.7 and can see the points plotted clearly but there are no tick labels visible for the y-axis !
I was earlier having this issue while zooming into the charts but I have fixed the zoom & AutoZoom by over-riding those methods.
My current LogarithmicAxis works well for most of my x, y datasets but in a few cases, the y-axis is plotted but does not show any Tick Labels on it, despite my creating them & setting their visibility to true.
If anyone has any suggestions on how to fix this & ensure that the Tick Labels are visible no matter what the y-axis values may be, please let me know soon as I need to get this done ASAP.
Thanks.

Time series chart horizontal gridlines through min/max peaks

I am using JFreeChart to plot a timeseries chart. The chart is working fine, but the gridline alignment is becoming a problem.
My requirement is to show the horizontal gridlines through the peak values (i.e for the max and min value). Could you please let me know if there is any property for this, as I am getting grids randomly.
Have you considered using a Marker to highlight the min and max values?
As trashgod sugested you use the Dataset to get the minimum and maximum values and then add a Marker to the Plot
Range range = dataset.getRangeBounds(true);
plot.addRangeMarker(new ValueMarker(range.getLowerBound(),Color.GREEN,new BasicStroke(2.0f)),Layer.BACKGROUND);
plot.addRangeMarker(new ValueMarker(range.getUpperBound(),Color.BLUE,new BasicStroke(2.0f)),Layer.BACKGROUND);

WPF Chart with data plotting on both x (datetime range) and y axis

In the Chart control of WPF Toolkit , how can i add plot data on both x and y axis . The graph has numerical data plotted on y axis and a timeline on x axis . To better understand this refer below image. As seen from the image, data is plotted both against x and y axis (i.e after the first negative value in red , data has been plotted against the timeline of x axis and stretches across the timeline). So in this case , i would need to plot 2 values on the x axis - 1) the start time and 2) the end time for a single column ie its a datetime range also on the y axis i would be plotting it against values and as the scale suggests , it is numerical.
Can this be replicated using the chart control in WPF toolkit or is there any workarounds/third party WPF controls which can attain this?.
This can be achieved if you shape your data accordingly. For example if you have your data points like
Time Value
09:51 -4
09:52 -2
09:53 -2
09:54 -2
..
..
..
10:11 -4
you will be able to plot a red rectangle with a long bar at 09:51 AM (Start Time) and long bar at 10:11 AM (End Time).

Resources