-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Vertical stacked bar chart combined callout and other tweaks #14912
Vertical stacked bar chart combined callout and other tweaks #14912
Conversation
VerticalStackedBarChart - props for custom rendering the callout and choosing between combined and per-point callouts - props for customizing the style or position of the callout - skip outputting bars for zero-value points - remove ref array where indexes were not deterministic
The screenshot above showing a custom combined callout uses this code: onRenderCalloutPerStack={props => (
<pre>{JSON.stringify(props, null, 2)}</pre>
)} Of course, in real use, it would output a pretty version of the data. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit da41823:
|
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Potential regressions comparing to master
Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: d0bdb5b1f6dae8c39be8ef012f70c3a5688a10f0 (build) |
…shouldn't be exported)
Can you please resolve the conflicts |
…rChart-callout-improvements
🎉 Handy links: |
…ft#14912) * Vertical stacked bar chart combined callout and other tweaks VerticalStackedBarChart - props for custom rendering the callout and choosing between combined and per-point callouts - props for customizing the style or position of the callout - skip outputting bars for zero-value points - remove ref array where indexes were not deterministic * Change files * changing to "major" due to removed exports (internal state interface shouldn't be exported) * maintain earlier update
*/ | ||
chartTitle?: string; | ||
xAxisCalloutData?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this intentional? It seems like xAxisCalloutData
should have been a new prop, not a replacement for chartTitle
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chartTitle
was not being used. It's not technically a replacement.
@@ -0,0 +1,8 @@ | |||
{ | |||
"type": "major", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure this should NOT have been a major change. Major version bumps should be reserved for backwards-incompatible API changes, which I don't think I'm seeing in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Raghurk wanted it to be major due to the changes to IVerticalStackedBarChartState
, which had previously been exported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, talked to @Raghurk and he said this was intentional
Pull request checklist
$ yarn change
Description of changes
VerticalStackedBarChart
Screenshots
Customize position and display (formatting value)
Custom callout for whole stack
Design