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

Float bars: data as objects #6739

Merged
merged 4 commits into from
Nov 15, 2019
Merged

Float bars: data as objects #6739

merged 4 commits into from
Nov 15, 2019

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Nov 13, 2019

  1. Allow float bars to be specified as objects:
[{x: 'a', y: [1, -4]}, {x: 'b', y: [6, 10]}]
  1. Pass parsed _custom via tooltipItem.custom, add float bar sample.

@@ -214,6 +214,7 @@ function createTooltipItem(chart, item) {
return {
label: indexScale ? '' + indexScale.getLabelForValue(parsed[indexScale.id]) : '',
value: valueScale ? '' + valueScale.getLabelForValue(parsed[valueScale.id]) : '',
custom: parsed._custom,
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of exposing custom, can we have the bar chart provide the correct value for value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, I'll do that in another request.

@etimberg etimberg added this to the Version 3.0 milestone Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants