How to add comma in label ?

869 views
Skip to first unread message

Pulze online

unread,
Jun 13, 2012, 8:40:39 AM6/13/12
to jqplot-users
Hi,

I am new for jqplot, how can i add comma for values(labels).

Example : now lable or Axis display like this $ 109661

I need output like this $ 109,661

Please help.



Tom Cassidy

unread,
Jun 13, 2012, 10:12:39 PM6/13/12
to jqplot...@googlegroups.com
Use a single quote character in the formatString option.

axes: {
yaxis: {
tickOptions: {
formatString: "$%'.1f"
> --
> You received this message because you are subscribed to the Google Groups "jqplot-users" group.
> To post to this group, send email to jqplot...@googlegroups.com.
> To unsubscribe from this group, send email to jqplot-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jqplot-users?hl=en.
>

Pulze online

unread,
Jun 14, 2012, 12:26:18 AM6/14/12
to jqplot...@googlegroups.com
superb, thank you Tomas


On Thursday, June 14, 2012 7:42:39 AM UTC+5:30, Tomas wrote:
Use a single quote character in the formatString option.

axes: {
        yaxis: {
            tickOptions: {
                formatString: "$%'.1f"
            }
        }
    }

On 13 June 2012 22:40, Pulze online <pulze...@gmail.com> wrote:
> Hi,
>
> I am new for jqplot, how can i add comma for values(labels).
>
> Example : now lable or Axis display like this $ 109661
>
> I need output like this $ 109,661
>
> Please help.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "jqplot-users" group.
> To post to this group, send email to jqplot...@googlegroups.com.
> To unsubscribe from this group, send email to jqplot-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages