• Resolved ldeschenes

    (@ldeschenes)


    Hi,

    I did create a Google Pie Chart that works fine.
    I am displaying Value instead of Percentage and would like the Value to be displayed as a dollar amount (like 450.25 $) instead of just a number (like 450.25).

    I am using wpDataCharts callbacks and I included these options:
    obj.options = { is3D: ‘true’, pieSliceText: ‘value’ };
    obj.options.pieSliceTextStyle = { fontSize: 16 };

    What would be the syntax for formating the pieSliceText ?
    I see that these verbs exist : suffix:’$’, pattern:’###,###.00 $’, format:’###,###.00 $’
    but cant figure out how to write the “obj.options”

    Thanks in advance

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

    (@wpdatatables)

    Hi ldeschenes,

    Thank you for your interest in wpdatatables.

    From the pie chart Configuration Options, there is no supported way for that.

    Pie slice text/value is configured using option pieSliceText option and you can have:

    1. none
    2. percentage
    3. value
    4. name values.

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Google Pie Chart Number Format’ is closed to new replies.