Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: pie-charts
colak wrote #339891:
I’m still trying to figure out how to customise the colours, but the data is there.
From memory, and don’t take this as gospel, pie chart colours can be specified in your var
block:
colors: ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#00ffff']
Offline
Re: pie-charts
gaekwad wrote #339893:
From memory, and don’t take this as gospel, pie chart colours can be specified in your
var
block:
colors: ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#00ffff']...
Hi Pete thanks so much for jumping in.
It was actually simpler than that! All I needed to do was to select the item in the series and add the colour. Sample code:
{ value: 13, name: 'Other' , itemStyle: {color: '#eeeeee'}}
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#15 Today 03:05:47
Re: pie-charts
Those are pretty cool. Wish I had a record of 21 years of my projects. That’d be really cool to see.
Offline
#16 Today 03:56:10
Re: pie-charts
agovella wrote #339897:
Those are pretty cool. Wish I had a record of 21 years of my projects. That’d be really cool to see.
Thanks! As we are reliant on public funding, local and/or EU, regulations demand that we collect and maintain a lot of information.
I’ve spent the last few months, collating it to Apple numbers, where I did the initial charts which are much more to what we published.
The good thing with spreadsheets is that we have the info just once, and then use formulas to separate it.
The issue with online charts is that they are ‘difficult’ to update as the info is totally abstracted and separated.
Adding a publication from 2020 for example, can be done in seconds in spreadsheets and all other tables and charts are updated automatically. Online, I will need to locate and change that info in 3 different charts. That’s the reason I was so tempted to use google 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
#17 Today 06:06:18
Re: pie-charts
colak wrote #339898:
Online, I will need to locate and change that info in 3 different charts. That’s the reason I was so tempted to use google charts.
Can you read the content from GSuite directly and update your current charts on the fly? See my accessing spreadsheets shortcode as an example.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#18 Today 08:53:57
Re: pie-charts
Bloke wrote #339902:
Can you read the content from GSuite directly and update your current charts on the fly? See my accessing spreadsheets shortcode as an example.
Hi Stef,
That’s the reason I first opted for google sheets but bici had a point which I could not really defend against.
I know that there are issues with Apache echarts too. For example, and beyond what I mentioned previously, the size of the minified js is 1mb. Furthermore, there is a learning curve regarding customisation, which I am still negotiating with.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#19 Today 08:59:00
Re: pie-charts
That’s cool. I didn’t mean using Google charts. I just meant taking your existing spreadsheet, uploading it to Google Sheets and then your Txp site can read the values directly and populate your echarts data from it. No need to faff with local spreadsheets or file formats or conversion.
But I get that you may want to entirely avoid big G. In which case, ignore me.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline