Is there any way on line charts that the ratio of the axes is always the same independent of the width of the axis?
The width of the surrounding container can change and the minimum and maximum of the x-axis should be updated so that the ratio of the axes remains the same.
I have attached two example images.
I have a stacked column chart and a request to show the x axis labels vertically or at a 45 degree angle. Is this possible in Power BI as I can't see a way of achieving this.
If it is not possible is there a custom visual that would create the desired outcome?
Instead of a stacked column chart, consider using a stacked horizontal chart, where the label are aligned with the visuals by default and you don't have to turn your head to read them.
I am rending image chart on a server side code. I am using bar chart (bvg).
I am not able to render the chart the way I want to. I am sure it's doable because I have done it using Google Chart JS. The chart's x axis is month and y axis is score. I want to display the labels Month and Score for each axis along with the bar labels. I also want to show the value markers on the Y-axis.
When I add X and Y axis labels with chxl the Axis Labels shows up along with Y-axis value markers; but strange the value markers denote wrong values. The values range between 0 and 100 no matter what values my bar represents and that too the height of the bar doesn't match with the Y-axis values (which ranges between 0 and 100). Please help.
I've written the URL like this:
https://chart.googleapis.com/chart?cht=bvg&chxt=x,x,y,y&chxl=1:|Months|3:|Score&chxp=1,50|3,50&chbh=30,20,20&chds=0,40&chs=400x400&chco=015CAE,015CAE,015CAE,015CAE,015CAE&chd=t:22,32,11,27,8&chl=Jan|Feb|Mar|Apr|May
And I am concerned about the values displayed in the following snapshot of the chart (see highlighted values in red, they do not match the actual bar values):
Don't Include chds parameter
Here is the modified link:
https://chart.googleapis.com/chart?cht=bvg&chxt=x,x,y,y&chxl=1:|Months|3:|Score&chxp=1,50|3,50&chbh=30,20,20&chs=400x400&chco=015CAE,015CAE,015CAE,015CAE,015CAE&chd=t:22,32,11,27,8&chl=Jan|Feb|Mar|Apr|May
I am using jasper reports with charting. The chart generally works with a wide variety of values.
In one case the values are either 1.011 or 1.01 for the range or Y axis. That is, the user tries to generate a chart and some of the values are 1.011 and some are 1.01.
The challenge is, when generating a chart with these values, the chart is scaled incorrectly on the range or Y axis. The labels range from 1.000 to 1.010 with increments of .001. As the top of the chart is 1.010, the values 1.011 fall off the top of the chart and don't appear on the chart.
Can anybody explain how the range or Y axis is derived beyond stating that the axis is derived from the data. And why, in this case, is the axis derived
incorrectly?
Is there a way to configure the chart to display the range or Y axis more correctly?
I edit a jrxml file. I do not use iReports or java api.
Thanks for all of your assistance and good ideas
I am currently building a chart which has two y axis(left and right). As I plot points on the chart for both axes wrt xaxis, I can see the grid lines in the chart not properly aligned.
Is there any algorithm which by taking the inital point of yaxis and y2 axis and calculates the maximum and minimum values of both axes so that the grid lines in the chart can be aligned properly.
Thanks,
Mahesh