Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
pie-charts
Can anyone recommend a good javascript based pie-chart that is easy to update frequently, and presents the chart as an svg?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
Re: pie-charts
I don’t see how to save a chart as svg in the official docs, but this has instructions
Offline
Re: pie-charts
Thanks for all your suggestions!!! I’m testing all the above and www.chartjs.org.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pie-charts
After a lot of research, I (unfortunately) found that google charts are the easiest as they use the familiar spreadsheet format and update the embedded chart automatically, on any data changes.
The issue that I have is that at the moment my CSP in htaccess is blocking them from embedding. I checked the net and I’m yet to find a directive that can just exclude the charts.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pie-charts
colak wrote #339876:
After a lot of research, I (unfortunately) found that google charts are the easiest as they use the familiar spreadsheet format and update the embedded chart automatically, on any data changes.
The issue that I have is that at the moment my CSP in htaccess is blocking them from embedding. I checked the net and I’m yet to find a directive that can just exclude the charts.
solved:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pie-charts
Offline
Re: pie-charts
agovella wrote #339878:
That’s cryptic. :-)
How’d you do it?
I added an exception for google subdomains.
Here’s the complete code
Header set Content-Security-Policy: "default-src 'self' data: 'unsafe-inline' 'unsafe-eval' font-src 'self'; manifest-src 'self'; object-src 'none'; img-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.vimeo.com *.youtube.com *.ytimg.com *.youtube-nocookie.com *.vimeocdn.com *.google.com; frame-src 'self' data: *.vimeo.com *.youtube.com *.ytimg.com *.youtube-nocookie.com *.vimeocdn.com *.google.com;"
As is usual, the resolution of one issue, also reveals other problems. It appears that google sheets charts are not responsive. I’m trying to find a solution online as the css I have implemented does not appear to work.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1