-
Notifications
You must be signed in to change notification settings - Fork 47
- Allow interval charts to compose w/other charts that render-charts() takes #497
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
Conversation
render-charts() takes. #486 - chart-lib.js: Have plot() recognize and process interval charts, instead of having separate intervalChart() - chart.arr: Rewrite render-charts() to accept interval-chart-series. For this, make interval-chart-series closer in properties to function/line/scatter series. interval-chart-from-list() now must keep track of the largest y's (including offset) so render-charts() can create a better bounding box. render-chart() no longer needs to do anything special with interval-charts, passing them on to render-charts()
@ds26gte Here's the sample program I'm using to test, which combines a scatter plot and an interval chart:
|
…-y - predicted-y - chart-lib.js: series style options enough for intervals, no globals needed
Is this at a point where it should be good to review + go or still in progress? |
@jpolitz good to go! Ready for final review and merger |
/* | ||
x | n n n | y | n n n n n n n n n n n n | ||
i combined.length - i - 1 | ||
*/ |
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.
This comment was informative about the shape of the data – did the shape change/is the comment irrelevant? Was it wrong/should it be documented somewhere what the new shape is?
}); | ||
|
||
// console.log('row setting done'); |
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.
Lots of commented out console.log
s – typically our style is to remove these though if there's a good reason for leaving them in because they were difficult to design could leave a comment to that effect.
@schanzer brought up a new test case which I'll investigate and then let you know after if it's ready to go. |
#486