timeline chart not drawing "null" data - google-sheets

when I use the data below in a google sheets timeline chart it doesn't plot 29/04/2019 5% and 10% leaving a gap in a chart, how can I resolve this? the chart should be unaffected by empty fields.
Date 5% Target 10% Target Actual
22/04/2019 120.6 120.6 120.6
29/04/2019 119.5
22/07/2019 114.57 108.54
22/10/2019 108.84 97.69
22/01/2020 103.40 87.92
22/04/2020 98.23 79.13
22/07/2020 93.32 71.21
22/10/2020 88.65 64.09
22/01/2021 84.22 57.68
22/04/2021 80.01 51.91
22/07/2021 76.01 46.72
22/10/2021 72.21 42.05
22/01/2022 68.60 37.85
22/04/2022 65.17 34.06
22/07/2022 61.91 30.65
22/10/2022 58.81 27.59
22/01/2023 55.87 24.83
22/04/2023 53.08 22.35
22/07/2023 50.43 20.11
I have tried adding another dataset and I get the error
each values column may be followed by one or two annotation columns. column number 4 is of type date
Here is a link to the spreadsheet

There are gaps in your data, so you're going to have gaps in your chart. That's just how Timeline Chart works. There are ways of having charts skip gaps, but you have the 29th as a date, so it is explicitly part of your timeline.
The least burdensome remedy is usually to chart a different dataset living elsewhere, filtered down live from your input values, but meeting your charting requirements. E.g. elsewhere in your file have it list only the rows where 5% Target is populated with something like =FILTER(B2:E,LEN(C2:C)) and then chart that.
If that's not what you really want, then you need to decide what you really want. A time-cropped chart to only include fully-populated date ranges? A chart with made-up values extrapolated from surrounding data? Those and some other options are not trivial, so you'll need to really determine your requirements and look into how they can be achieved.

Related

Google Spreadsheet chart not pulling information from table correctly

I have 2 tabs relating to the graph I'm working with. I have multiple graphs all working properly but one in particular. I have tried selecting different ranges to use for the data range, I have tried using different types of graphs. All the same I get the same results. The other graphs use the same information from the same table.
The graph's purpose is to compare the Highest Price and the Lowest Price per item. HERE is a link to a sample sheet with the same information as the original. Thank you for any help you can give!
values needs to be numeric not text string so in worst case a conversion is needed:
=ArrayFormula({INDEX(SPLIT(F4:F13, " "),,1), INDEX(SPLIT(G4:G13, " "),,1)})
and then you can plot your chart...

how to handle series data when you can't predict data set?

I'd like to create a highchart line chart with drill down to addition data.
The first data point would be date and total count, i.e., (2019-04-01, 3,000)- I have that part down and displaying.
The drilldown would be a break down of the total, such as:
Cats 1,000
Dogs 1,000
Pigs 1,000
I can do that too, but only when I can predict the drilldown series. The data set is dynamic, it could, for example, sometimes include birds and fish, or not have pigs.
I've create a pie chart with drilldown and set an array to have the drilldown data... I could pull this off because the data was predictable. I'm using PHP to create the data set but could use python or csv is that makes it feasible.
The drilldown should be dynamic and be able to handle any introduced series.

Date vs Names graph with highcharts

I want to draw a graph between dates and names. The graph which I need is in below format:
in below graph the data will be like
one column with dates and another with names...the names should be given different colors and on the same day if the name repeats it should be shown. i tried doing this, but not succeeded, please help me to draw this.
sryy it's not allowing to add image.

Representing sparse data in a Highcharts series

I'm trying to generate a stacked column chart. What I want is similar to this JSfiddle example. However, I have around 30 categories and 1000 series. The series are rather sparse. There are only about 200 values. But because highcharts needs each series to have values across the x-axis categories, I'm forced to submit 1000 series each having 30 values (mostly zeroes). The chart takes over a minute to render. How can I improve this performance?
There is another way you can pass the data to highcharts, where you specify x and y for each point. This means you can skip the 0 values. In the fiddle you quoted, I modified one line to be:
data: [{x:1,y:5}, {x:3,y:7}],
http://jsfiddle.net/rh9aK/
I expect that 1000 series and 30 categories may still be too much, but this is worth a try.
One other thing, have you made sure that you don't have any series which only contain zeros ? If so, you may as well remove them before rendering.
JS charts, in you case, will produce too many DOM elements. It will be too complex for browser. You need some server-side solution which generate graps inside image.

How to go from individual date/time log to "timeline" graph?

I have essentially a log file in a Google Sheets. Columns are "Date/time", "user", "asset accessed", and there will be multiple entries for the same date, though usually not time.
I'd like to use the timeline graph to show user activity, but the graph requires an aggregate view with one date (no time) per row, with a numeric count in second col. Is there a way using functions within Google Sheets to generate an aggregate "view" of this data and pass this to the timeline graph?
Well, I guess you'll have to create an auxiliary sheet, or just some columns with the summarized values for you chart.
From your description, I'll assume you're using 3 columns (ABC). Let's use columns D, E and F with the following formulas:
=ArrayFormula(Trunc(A:A))
=Unique(D:D)
=ArrayFormula(CountIf(D:D;E:E))
Since date values are actually a number (qtt of days since the epoch), and hours are decimals, the Trunc formula gets rid of the "time" part and leaves only the date. Just format the cells (apparently numbers) as dates and you'll see. Then Unique and CountIf do the summarizing.
There's surely different ways of doing this, perhaps more "elegantly", in a single formula. But I think that in this way it's more easy to understand and learn from. Also, you'll probably need to adapt the ranges to your actual columns positions (I hope that's not a problem).

Resources