-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
What about integrating chartjs? #680
Comments
As from my quick look chartjs misses a way to write charts in a descriptive way as Mermaid does. That's what it makes mighty on the one hand but difficult to use for the average user on the other hand. So at the moment, I have no plans to integrate this or any other library relying on JSON or JS to define a graph. If you want to imnplent it yourself there are four places to look:
As you can see, it's quite littered over the templates. A situation I am not very happy of, myself. |
Well, I followed your documentation but get errors so I forked my private repo for you to help me understand what's missing in your doc or in my head 😁 Thank you very much for your help. This commits aims at adding chartjs: Hugo server error: NB: "XXXX" is the beginning of my file path on local disk. |
I've added comments to your changeset. |
I've pushed a changeset to your repo's branch and fixed the theme docs. My fault. Sorry. |
Glad and will see this later today after work. Don't be sad, when I write doc I must follow it to proofread it and validate. |
I am happy someone does read the docs! That's the way to poke out all the errors. Thanks for this! |
I've closed this as the fallout was done in #682 and the rest is part on your site. Nevertheless, don't hesitate if you need further help. |
Well, still trying to troubleshoot what expects json and gets something else when I start hugo. Then I just found this, looking at this code may help me https://github.com/shen-yu/hugo-chart Sorry for loosing your link about auto-closing shortcode tag but this didn't help. And will have a look tomorrow at https://shashanksrivastava.gitlab.io/post/2019-06-14-use-chartjs-hugo-site/ despite its age because code seems close to yours. |
Tonight I play with https://github.com/McShelby/hugo-testing that will the perfect place to play with a feature branch. Cheers |
At the moment there is not much to see. This repo is intended for making minimal working examples for certain issues related to Hugo and / or the theme. This is inspired by https://github.com/jmooring/hugo-testing |
@McShelby I invited you again to my private repo, that's the easiest way. I did some minor progress but would love to get some help, please can you read my last comment here when you have some time, the error message seems clear. https://github.com/postb99/poesieland/issues/10 (branch is feature/1.1). |
@McShelby since you helped me and I am so glad I have a working ChartJs on my website, are you interested by a documentation page I would submit you and that would talk about a step-by-step guide to add ChartJs? This page would be linked at the bottom of this documentation section: https://mcshelby.github.io/hugo-theme-relearn/basics/customization/index.html#own-shortcodes-with-javascript-dependencies Because the main caveat was to find out to use the UMD loader rather than ES6 version and this would be nice to be documented. I had the same issue once in another project when using a plain JS lib into a project. Going again to https://cdnjs.com/libraries/Chart.js I indeed see a classic and an UMD version. |
I am hesitant for two reasons:
I still may make an exception here as:
|
Hello, my first Chart.js based chart is online 🌟 maybe my site could be added to the sites using this theme showcase because it's very nice to promote your Hugo theme. Here is the link to my first chart: Still thinking of making the ES6 version of Chart.js work, let me log an issue for myself ;) |
That's what I was thinking, too. Besides links to official Hugo documentation, this is the only place where I currently link to other sites. I am thinking about to upgrade the showcase page with some pointers describing what makes each page special. |
Before adding this to the showcase, are you planning on custumizing the visuals (eg. color variant) or is this final? |
I just customized the logo and menu width, everything else pleases me in green theme used so this is the final look and feel. I also like neon theme when developing so that I have both local and remote sites open 😋 |
Hello,
On my website, I'll have these kinds of diagrams:
I see that mermaid supports pie chart (by chance).
What about adding support to chartjs.org to your theme? is this complicated?
Would there be other libraries that would use markdown input like mermaid?
Just some open questions while doing preliminary searches for which library would suit my need for the three kinds of diagrams.
I might study how you integrated mermaid and could try to do the same for chartjs. But you're blazingly fast at coding new features for this nice theme :D
The text was updated successfully, but these errors were encountered: