I want to create a bar (a.k.a. column) chart with 5 distinct dates on the x axis. For each date, I want to display bars representing the health level of the top 3 healthiest horses in my stable on that date. However I have 20 horses, and the total number of different horses that are among the top 3 healthiest on at least one of the days can be 15 at most. Suppose for this chart, there are 9 distinct horses that will appear on at least one date on the chart.
The problem: highcharts draws the bars thin enough so that it could display all 9 horses on every date, even though only three appear for every date. This means that the bars are extremely thin, and there is a huge amount of whitespace. Not only that, but he actual bars are spaced irregularly because highcharts seems to be saving a particular space on each date for all 9 horses.
Is there any way that I can tell highcharts to not allocate space on the x axis for horses that I may want to display on another day, but don't want to display for the day in question?
It's all a matter of how you set your data up.
If you want to have a series for each horse, there's no way around the problem you are describing.
With a little different set up, however, you should be able to get a chart the way you want it.
Here's a quick example of one method to achieve it:
http://jsfiddle.net/jlbriggs/W9fUF/
data: [
{y:3, horse:'horse 1', color:'red'}, //date 1
{y:3, horse:'horse 2', color:'yellow'}, //date 2
{y:3, horse:'horse 3', color:'blue'}, //date 3
{y:3, horse:'horse 4', color:'green'}, //date 4
{y:3, horse:'horse 5', color:'orange'}, //daate 5
]
Related
I want to make a stacked column chart with the data below. The workstreams would be on the x-axis and I would want three columns over each of them, one for each month, and the 'Reschedule' and 'Cancel' values would be stacked for each month. Not sure if this is possible, I've tried a couple things and can't get it to work.
The only way I've found is to set the series axes to left and right to separate them into columns. But this means that only two chart columns per x-axis data point.
So in your case, if you set up a stacked chart with the October and November values and then select each November series and change the Axis for each to the right, the two November values will be stacked in a column next to the stacked October values. Unfortunately, since there are only two axes, there's no way to then include the December values.
Original source is here: https://medium.com/#angellily0330/a-simple-way-to-create-clustered-stacked-columns-in-google-sheets-68792498d3ed
I want to show data for 4 weeks on a Google Sheets chart.
I have tried to do this and it is mostly ok as this is correct:
The X-axis shows the days of the week
The Y-axis is the weight number
Issues I have with my current implementation are:
I had to make a separate series for each week when I wanted it automatically group the data by week number. (I then can't name each series)
The data is off by one day. Monday's data doesn't show which means Tuesday's data is showing in place of Monday and so on.
Here is a link to the google sheet and a screenshot below: https://docs.google.com/spreadsheets/d/147RMW2JE7MoWz53EZuB-nHj-p_xeKez_ze_0mqq8NGA/edit?usp=sharing
My expected result would look more like this:
Here the lines are shown grouped by each week AND data is shown for each day
The reason why you are missing the first day of every week is that you have checked the Use row 1 as heeaders so every series will remove the first datapoint (monday in your case) and insert it as the label for that series (you can see that in the legend).
If you uncheck that checkbox and change your range for the X-axis so it goes from Monday to Sunday you get the correct graph.
The problem with the previous graph is that although all its datapoints are correct there is no legend. But unfortunately there is no way to insert a legend easily because you cannot go and change this manually, the label for each series has to come from the cells.
What you can do to work around this limitation is change your data so the label for each series sits on top of your data and keep the Use row x as headers checked:
Of course this is not the only solution, you can go on multiple ways here, copy the table in a single sheet for every week, or just live without labels. Stack the weeks horizontally so everyone has its week number on top of the weight column, etc
I would like to combine the information "orders per weekday" and "orders per hour" in one column chart. The first series would show how many orders where placed on mondays, thuesdays, etc. and a second series would show the distribution between the different hours on each day. This would help to answers question "most orders are places on monday afternoons and sunday mornings..."
The result should look something like this:
The big columns represent the days and the red bars the hours (only four days and 5 hours per day in this example).
How can I place the day-column behind the hour-column?
How can I group the hour-column for each day with the corresponding day-column?
I am trying to figure out if this can be done with Highcharts. I have 5 different series on my chart and my X axis is made up of Dates. My problem is this, lets say Series 1 has 2 data points 10 and 15 with dates of 5/1/2013 and 5/3/2013. My second Series has Data that is 15 and 20 with dates of 5/1/2013 and 5/4/2013.
What will end up happening is that 5/1/2013 will show up twice and 5/4/2013 wont show up at all.
Now if I remove the duplicate dates, it causes another issue if Series 3 is 5, 10 with 5/3/2013 and 5/4/2013, Instead of the 5 being listed on 5/2/2013 it is showing up on 5/1/2013.
Is there any way around this? or will I have to make different charts for each Series I want listed on there?
Thanks,
Chris
Start date in irregular series is not same with date which is shown on mouse-over tip.
Also, you can check this on HC demo page for Winter serie start date: http://www.highcharts.com/demo/spline-irregular-time
How can I fix this, so both date point to regular one.
TY
There is no error. XAxis labels is calculated for only to fit the screen. There may be no point on label. For this example, time is fragmented per-14-days. If time is too long, may be fragmented more than 14, OR less than 14.
XAxis labels not represent points. It only shows timeInterval.