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

[explore] improve bubble viz #2927

Merged
merged 2 commits into from
Jun 20, 2017
Merged

Conversation

mistercrunch
Copy link
Member

  • allow for custom axis formatters
  • reorg the control panels

}
if (chart.yAxis !== undefined) {
chart.yAxis.tickFormat(d3.format('.3s'));
if (chart.hasOwnProperty('y2Axis')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i think if (chart.yAxis && chart.yAxis tickFormat) would be less brittle here.

chart.hasOwnProperty('y2Axis') would return true even if the value is undefined, in which case chart.y2Axis.tickFormat() would throw an error. do we always know that chart won't have the key with a value of false or undefined?

screenshot 2017-06-12 23 30 53

if (chart.hasOwnProperty('x2Axis')) {
chart.x2Axis.tickFormat(xAxisFormatter);
height += 30;
}
if (chart.hasOwnProperty('xAxis')) {
Copy link
Contributor

@ascott ascott Jun 13, 2017

Choose a reason for hiding this comment

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

we should check that chart.xAxis is defined and has the key tickFormat. can we assume that if the key is present that it has a value?

if (chart.xAxis && chart.xAxis tickFormat)

} else if (fd.x_axis_format !== undefined) {
chart.xAxis.tickFormat(timeFormatFactory(fd.x_axis_format));
const yAxisFormatter = d3FormatPreset(fd.y_axis_format);
if (chart.hasOwnProperty('yAxis')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

here as well.

* allow for custom axis formatters
* reorg the control panels
@mistercrunch mistercrunch merged commit 3e51c61 into apache:master Jun 20, 2017
@mistercrunch mistercrunch deleted the improve_bubbles branch June 20, 2017 05:09
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.18.5 labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.18.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants