Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentage display and label when over a hits #174

Closed
wants to merge 1 commit into from

Conversation

hraff
Copy link

@hraff hraff commented Jun 19, 2013

No description provided.

Percentage display and label when over a hits
@cdeszaq
Copy link

cdeszaq commented Jun 20, 2013

This removes showing the value and only shows the percent. Why do we want to remove the existing behavior?

if (item) {
var value = scope.panel.chart === 'bar' ?
item.datapoint[1] : item.datapoint[1][0][1];
var percent = item.series.data[0][1] / (total / 100);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the logic. Rather than doing something different for bars, it does the same thing for everything now. Why?

@rashidkpc
Copy link
Contributor

I would agree here, this needs to be either supplemental, or as a setting. The panel is called the hits panel, it should display the number of hits.

@hraff
Copy link
Author

hraff commented Jun 21, 2013

The number of hits is displayed in legend.

@rashidkpc
Copy link
Contributor

As stated, I'd rather this be changeable as a setting.

@rashidkpc rashidkpc closed this Jun 21, 2013
spalger pushed a commit to spalger/kibana that referenced this pull request Mar 3, 2016
- Closes elastic#169 - Add type field to multi_match
- Closes elastic#175 - Adding global autocomplete rules for aliases
- Closes elastic#194 - Adding time_zone to date_histogram agg
- Closes elastic#199 - Removed multi_field type and added copy_to
- Closes elastic#170 - Add _bunch endpoint
- Closes elastic#174 - Adding _search/template endpoint
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