jQWidgets Forums

jQuery UI Widgets Forums Chart Change Number of Decimal Places Shown in Tooltip

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 12 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • snowfi6916
    Member

    I am trying to change the tooltip that displays when you click on a piece of data in the chart. Right now, the number that gets displayed to show what the exact value of the data is is only 2 decimal places. I would like it to be 4. I know it has something to do with toolTipFormatFunction, but I don’t know where to begin for the code. Could someone please help me? Thanks.


    Dimitar
    Participant

    Hello snowfi6916,

    In your case, you should use toolTipFormatSettings, which has parameters such as decimalPlaces, which sets the number of digits after the decimal separator. For more information, please take a look at Chart Formatting.

                    seriesGroups:
    [
    {
    type: 'column',
    columnsGapPercent: 30,
    seriesGapPercent: 0,
    toolTipFormatSettings: {
    decimalPlaces: 4
    },
    valueAxis:
    {
    minValue: 0,
    maxValue: 120,
    unitInterval: 10,
    description: 'Time in minutes'
    },
    series: [
    { dataField: 'Keith', displayText: 'Keith' },
    { dataField: 'Erica', displayText: 'Erica' },
    { dataField: 'George', displayText: 'George' }
    ]
    }
    ]

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.