Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: How to format labels (or display all tooltips)?

$
0
0

onlyDLucky,

If you are working with C1CompositeChart and want to modify the labels for a bar chart series type then you may use the following code:

        $(document).ready(function () {
            var barSeries = $("#C1CompositeChart1″).c1compositechart().data().fields.allElements.chartLabels;
              $.each(barSeries, function (e, args) {
                var val = args.attrs.text;
                args.attr('text’, "Series: Test Series Value: " + val.toString());
            });
        });

Please try this and let me know if this helps. Also in order to avoid any confusion, I would request you to please create a new forum thread if you have additional questions.

Regards,
Sankalp


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>