GWT annotated timeline chart - more series in range selector - gwt

Is there any way to add more series of data to be shown in range selector below actual chart. Now it is only one although i have two series of data in chart.

Nope, currently not. I am dealing with the same issue. The range selector is always showing the first graph added to the chart.

Related

how to add a custom value in grafana legend?

There is a graph display elasticsearch index count, see below
I want to add a value: diff = max - min in Legend, how to implement it?
I'm pretty sure you can't, easily. You can hack your way around it by adding yet another query to your graph, something like
max_over_time(my_metric[[[__range_s]]s]) - min_over_time(my_metric[[[__range_s]]s])
Grafana will replace the [[__range_s]] bit with the length of the time range of the current dashboard, e.g. 3600 for the default 1h, so the query actually sent to Prometheus will be
max_over_time(my_metric[3600s]) - min_over_time(my_metric[3600s])
Meaning Prometheus will compute the difference between the max and min separately from Grafana (which does it on top of the samples returned by Prometheus). (It will also compute this difference for the whole time range, not just the most recent sample, which is what you're interested in.) Then you can tweak the display of said time series in Grafana (e.g. by setting line=0, fill=0) so it will not show up on the graph itself, only in the legend. But the legend will then display the current value of the difference, as well as its min, max, avg, which will be quite the crappy UX.
Edit: Or you can add said query to a separate panel (e.g. a table panel), to the right of your graph. That may let you better control the UX, although it still won't be part of the actual legend.
Edit 2: One final thing you could try, that would give you exactly what you want, is to tweak Grafana's graph panel to add a "range" value next to "min", "max" and the bunch. The source code is here, I'm pretty sure it's mostly a copy-pasta job. You likely wouldn't even have to rebuild all of Grafana, you could just package the modified panel as "Tweaked Graph Panel" plugin and drop it into your Grafana deployment's plugins folder. Then, in your dashboard, instead of using "Graph Panel", use "Tweaked Graph Panel".

SAPUI5 timeseries_stacked_column chart displaying empty weeks even though there's no data

I'm creating the timeseries_stacked_column chart using SAPUI5 and the framework is plotting data for missing weeks even thought it's not fed to the chart. Please can anyone guide what's the best approach to avoid this.
Document link for chart property reference:
https://sapui5.hana.ondemand.com/docs/vizdocs/index.html#reference/chartProperty/Charts/Bar%20%20(15)/Stacked%20Column%20Chart%20for%20Date/Time%20Series/
Please see the screenshot below for the issue
Unfortunately the time series doesn't skip the intervals so the alternate solution to this was to use stacked_column chart with array of dimensions ["Year", "Week"] and plot accordingly.
Example: https://jsbin.com/nejefizuve/edit?html,output

Time series graph that supports arbitrary date annotations?

I am making a time series line chart, currently using Google's standard Line Chart. The data consists of a set of dates and values for about a dozen different categories. There is no problem plotting this all to a chart.
What I'm running into is that I would like to overlay on the chart different milestones, what I'm looking for is some sort of annotation marker for a given date. The problem is there is no guarantee that the date of one of these milestones would necessarily land on the same date as one of the datapoints, and at least so far Google's Annotation Chart or adding annotations to the Line Chart all seem to require that the annotation be added as an optional text to a preexisting data point.
I started playing with Rickshaw since some of the tutorials made it look like it supported arbitrary annotation points, but it seems like it's a bit of work to get it to look as nice as the Google charts do out of the box.
Is there a way or hack or something to add annotations to the Google Annotation Chart if the annotation date doesn't match to the date of an existing data point? Or is there some other charting library that would more easily handle this?
With the LineCharts, you can annotate the axis values by adding an 'annotation' role column immediate after the domain (axis) column. You can add one or more rows to your DataTable that contain annotations on specific dates, even if those dates don't have any data at other points - just set those other columns to null.

Chart on Telerik Report: erratic behavior in datetime line graph

I am trying to render a telerik report graph. This graph can have up to 5 different series, though most have 3. I have a odd problem where one (or more of the lines) does not perform as expected and behaves erratically. When I checked the objects, the data appears to be correct.
Any Ideas?
Turns out the points need to be ordered while entering them via C#. If they are entered out of order then you get the above behavior.

GWT with Visualization: link two visualizations to the same data

I have a BarChart and Table on the same data.
I want to link these two visualizations such that if I sort the table column by a mouse click on one of the columns, it would reflect in the bar chart.
I found one example for the Visualization api:
http://code.google.com/apis/chart/interactive/docs/examples.html
But the sort method is not avaiable for com.google.gwt.visualization.client.DataTable.
How can I do it?
The google-gwt-apis haven't been updated for a long time and don't support the latest gogole chart features.
However you can extend DataTable and use JSNI to implement the sorting and unsupported functions yourself.
Refer to the DataTable.java and the google chart tools for more information.