-
Notifications
You must be signed in to change notification settings - Fork 185
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
feat: enable chart grid enable option #761
Changes from 10 commits
c00d4f5
426d2a9
ff71f3a
9672840
4de05e1
965513b
a5ea445
774f6a4
ec9212a
4d97cdf
068846f
d6a4177
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -24,6 +24,18 @@ export class Ruler extends Component { | |||||
domainValue: number; | ||||||
originalData: any; | ||||||
}[]; | ||||||
isXGridEnabled = Tools.getProperty( | ||||||
this.model.getOptions(), | ||||||
"grid", | ||||||
"x", | ||||||
"enabled" | ||||||
); | ||||||
isYGridEnabled = Tools.getProperty( | ||||||
this.model.getOptions(), | ||||||
"grid", | ||||||
"y", | ||||||
"enabled" | ||||||
); | ||||||
|
||||||
render() { | ||||||
this.drawBackdrop(); | ||||||
|
@@ -231,7 +243,9 @@ export class Ruler extends Component { | |||||
this.backdrop = DOMUtils.appendOrSelect(svg, "svg.chart-grid-backdrop"); | ||||||
const backdropRect = DOMUtils.appendOrSelect( | ||||||
this.backdrop, | ||||||
"rect.chart-grid-backdrop" | ||||||
this.isXGridEnabled || this.isYGridEnabled | ||||||
? "rect.chart-grid-backdrop.stroke" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again my feedback here still applies. seems like this piece seems to be in there by mistake from our previous commits. Are you able to remove all the styling pieces for the backdrop from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the code for styling backdrop in |
||||||
: "rect.chart-grid-backdrop" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seems like stroke should be a separate configurable no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually I think stroke might be something we'd always want to keep unless overriden @jeanservaas could you please chime in? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @theiliad and @jeanservaas, |
||||||
); | ||||||
|
||||||
this.backdrop | ||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -7,6 +7,8 @@ | |||||||
} @else { | ||||||||
fill: $ui-background; | ||||||||
} | ||||||||
} | ||||||||
rect.stroke { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
stroke: $ui-03; | ||||||||
} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need this extra classname? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason why we need |
||||||||
|
||||||||
|
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.