Skip to content

Conversation

@nikicat
Copy link

@nikicat nikicat commented Aug 20, 2013

This patch adds series' label to histogram tool tip and corrects value for stacked graphs.

@bobrik
Copy link

bobrik commented Aug 25, 2013

If series has no "alias" then you end up with empty space after "=". I think showing query in this case is better:

diff --git a/panels/histogram/module.js b/panels/histogram/module.js
index 60b823f..859651f 100644
--- a/panels/histogram/module.js
+++ b/panels/histogram/module.js
@@ -418,7 +418,8 @@ angular.module('kibana.histogram', [])
             "<div style='vertical-align:middle;display:inline-block;background:"+
             item.series.color+";height:15px;width:15px;border-radius:10px;'></div> "+
             item.datapoint[1].toFixed(0) + " @ " +
-            moment(item.datapoint[0]).format('MM/DD HH:mm:ss'));
+            moment(item.datapoint[0]).format('MM/DD HH:mm:ss') + " = " +
+            (item.series.info.alias || item.series.info.query));
         } else {
           $("#pie-tooltip").remove();
         }

You are right about stacked graphs, but I thin it should be separate pull request.

What do you think?

@nikicat
Copy link
Author

nikicat commented Aug 29, 2013

As I see you've opened pull request for it. I think it's useful too.

@spalger
Copy link
Contributor

spalger commented Aug 29, 2013

Thanks for pointing this out, I think it makes the tooltip more useful.

In regards to the value within a stacked plot: I expected the same behavior you did at first, but after a bit of research it seems that stacked/area plots are designed to show cumulative totals, not just a way to prevent things from overlapping. Because of this, I feel like the current behavior is probably correct.

Closing this for now since #439 will likely be merged soon.

@spalger spalger closed this Aug 29, 2013
@nikicat
Copy link
Author

nikicat commented Aug 30, 2013

I could make a similar patch, but with toggle in a settings panel. Is it OK?

@bobrik
Copy link

bobrik commented Aug 30, 2013

I vote for setting (maybe even enabled by default) for this. This is definitely not obvious.

rashidkpc pushed a commit that referenced this pull request Oct 6, 2014
spalger pushed a commit to spalger/kibana that referenced this pull request Mar 3, 2016
harper-carroll pushed a commit to harper-carroll/kibana that referenced this pull request Jul 11, 2016
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
…elastic#409)

When displaying a stacked area/line chart with multiple data sets we need to fill the dataset with zeros on missing data points. The rendering is affected also: it will hide the filled missing point but will continue to show the area beneath it.

fix elastic#388
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
# [13.5.0](elastic/elastic-charts@v13.4.1...v13.5.0) (2019-10-09)

### Features

* **data:** fill datasets with zeros with missing points when stacked ([elastic#409](elastic/elastic-charts#409)) ([ef84fd4](elastic/elastic-charts@ef84fd4)), closes [elastic#388](elastic/elastic-charts#388)
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
Add ability to fit data of non-stacked line and area charts with a specified fit function type
* add fit functions for null y1 values
* allow end values to be explicitly set as fallback
* add visual regression tests
* add unit tests and better testing utils

Note: Does not *yet* support stacked charts or `y0` values. This is a future enhancement is being tracked in elastic#450.

related to elastic#388
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants