• Resolved Peter

    (@ag86nl14)


    Hello everyone,

    I’m looking for a simple way to dynamically show voting results: Pro and Con.
    So:
    Pro (party 1 (5 votes), party 2 (6 votes), party 3 (1 vote))
    Con (party 4 (3 votes), party 5 (2 votes))

    This would be doable (I guess) with a Chart.JS Donut, where all Pro’s are green and Con’s are red. On hover, the party-names would be visible. But how do I create such an Excel-file? A donut only accepts 1 string and 1 datacolumn. 2 Datacolumns produce a weird layout.

    Any help is much appreciated!

Viewing 1 replies (of 1 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi, Peter
    The Doughnut Chart is very similar to Pie chart, except it has an empty inner part so it’s more like a “sliced donut” rather than a “sliced pie”.
    So, we are not able to compare two or more sets of series in it.
    It can only load one series and slice it up from the values of that one column.
    If we input two numerical columns > it will slice the second selected column for values, the other one will serve only for the legend.

    So, i am not sure what might be the best workaround in this scenario, to be honest.
    Perhaps you could present two separate pie charts, beneath each other, or next to each other on your page;
    and name them “Pro” and “Con”;
    that way you will be able to present everything in two Donut charts.

    Alternatively, you could try other chart types, of course, that can compare several series.
    Let me know if all of this makes sense, and if you have any additional questions. Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Voting results’ is closed to new replies.