-
Notifications
You must be signed in to change notification settings - Fork 13
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
migrate plugin to Typescript and generate modular packages #24
base: master
Are you sure you want to change the base?
Conversation
Ruleset copied from the one used in the Chartist project.
The chart classes have been renamed from Bar, Pie and Line to BarChart, PieChart and LineChart. The rest of the logic still works fine from here on.
* migrate Grunt to Yarn tasks * use Jest in favor of Jasmine for testing * remove generated CSS sources * use single build pipeline instead of Node matrix
Chartist itself is not IE11 compatible anymore, so there is no reason to stick with the legacy aliases here.
This option no longer exists, so the special case is no longer required in the plugin either.
There is another callback option "tooltipFnc" that allows transformation of the value string. The currency options are hardcoded as prefix and the transformation is applied in non-intuitive order. Finally, adding a currency symbol can be achieved with a single callback: (value) => '$ ' + value
8cb0de2
to
569090a
Compare
I tried to start a discussion about moving common plugins to the @chartist-js org: chartist-js/chartist#1391 |
Sorry, for the long radio silence. The last months were very busy for me. I'll review your contributions in the following days or weeks. Did your code works well in production or do you've noticed any possible drawbacks? |
2fbeedc
to
dea4c14
Compare
Just rebased the PR on top of the latest changes, so it can be applied cleanly again. I'm using the updated lib in one project with various line charts and it served my need since I introduced the changes. (it's in an admin UI, so I currently don't have a public site to link here). I have not tested every single feature. Don't know if there is any more complete example page that could be simply migrated to see if everything works as expected. We could probably build one. |
I'm sorry that I haven't found the time so far to review the pull request. My time available for open-source projects has decreased significantly in the last year. Are you using the plugin in production, and if so, would you be interested in maintaining it in the future? |
This is quite a major update.
The Plugin and the project structure are updated to get closer to the Chartist v1 ecosystem.
I was wondering if the changes should be part of a new, shared repo, but I couldn't manage to start a discussion upstream. My goal is not to create and maintain yet another fork, so maybe we want to move this project in the proposed direction...
Changes:
They are no longer available in Chartist.
Kind of tricky to use and they can easily be replaced with a one-line callback.
Build Process:
New usage example:
or as UMD: