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

Fix for 2-axis charts where it shrinks them a little bit #102

Conversation

bradmbaker
Copy link
Contributor

Here is the fix for charts with 2 x-axes. It scales it down 30 which makes it fit.

@@ -33,7 +33,7 @@ function viz_nvd3(slice) {
nv.addGraph(function() {
if (viz_type === 'line') {
if (viz.form_data.show_brush) {
chart = nv.models.lineWithFocusChart()
chart = nv.models.lineWithFocusChart();
//chart.lines2.xScale( d3.time.scale.utc());
chart.lines2.xScale(d3.time.scale.utc());
Copy link
Member

Choose a reason for hiding this comment

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

I think indent is (was) busted here...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed the indentation on the few rows below.

mistercrunch added a commit that referenced this pull request Jan 8, 2016
…rescaling_to_nvd3_file

Fix for 2-axis charts where it shrinks them a little bit
@mistercrunch mistercrunch merged commit e36ebfe into apache:master Jan 8, 2016
hughhhh referenced this pull request in lyft/incubator-superset Apr 1, 2018
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Aug 31, 2018
Cherry-picks: Allow users to choose color for BigNumber
zhaoyongjie referenced this pull request in zhaoyongjie/incubator-superset Nov 17, 2021
zhaoyongjie referenced this pull request in zhaoyongjie/incubator-superset Nov 24, 2021
zhaoyongjie referenced this pull request in zhaoyongjie/incubator-superset Nov 25, 2021
zhaoyongjie referenced this pull request in zhaoyongjie/incubator-superset Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.7.0 labels Feb 19, 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.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants