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
Create Chart class that all charts inherit from #32
Create Chart class that all charts inherit from #32
Conversation
To try and keep all of the configuration the same, I have added a lot of customisation to some of the methods. Arguably this has added additional complexity so I would prefer to make it more general, e.g width/height of the graph. What do you think @jwilber ? |
This is not yet ready, just noticed an issue. |
Sorry for response time, I've been traveling! P.S. - I've added you as a collaborator since you've been doing some good work and seem interested :) |
Can I standardize the default parameters for the charts, e.g. height and width, (roughness for some)? |
What exactly do you mean by standardize in this instance? Like naming conventions? Or do you mean standardize the default values across the charts? I think either is fine, just tag me on the PR. |
I mean the default values yeah, some are larger than others and such. Alright, I'll do that as a part 1 prep. PR and tag you in it. Thanks |
Sounds great. As far as I can tell, this may be done by changing the Old:
New
I can wait to make this change after you've finished the ABC, but since you're working on it (and I believe Something to think about! |
Relates to: #32
Created a super class called
Chart
, it has the common properties in all charts, (if I missed any please let me know and I'll add it!)Also added the following methods which are identical in all charts:
initChartValues
setSvg
resolveFont
resolveData
setTitle
These two methods:
drawFromFile
anddrawFromObject
MUST be implemented when extending theChart
class.