How to Integrate Flot with AngularJS?

Since charting involves heavy DOM manipulation, directives are the way to go. Data can be kept in the Controller App.controller(‘Ctrl’, function($scope) { $scope.data = [[[0, 1], [1, 5], [2, 2]]]; }); And you can create a custom HTML tag1 specifying the model you want to get data from <chart ng-model=”data”></chart> which angular can compile through … Read more

Chart.js and long labels

For Chart.js 2.0+ you can use an array as label: Quoting the DOCs: “Usage: If a label is an array as opposed to a string i.e. [[“June”,”2015″], “July”] then each element is treated as a seperate line.” var data = { labels: [[“My”, “long”, “long”, “long”, “label”], “another label”,…], … }

Can Google Charts support dual y-axis (v-axis)?

It took me a while, to figure this out, but Google Charts does support dual Y-axis (v-axis). I want to use the Javascript API and not the HTML interface. This example can be tested here: http://code.google.com/apis/ajax/playground/?type=visualization#line_chart Replace all of that code with this code showing how to have two different Y-axis scales: function drawVisualization() { … Read more

Hide axis and gridlines Highcharts

Just add xAxis: { … lineWidth: 0, minorGridLineWidth: 0, lineColor: ‘transparent’, … labels: { enabled: false }, minorTickLength: 0, tickLength: 0 } to the xAxis definition. Since Version 4.1.9 you can simply use the axis attribute visible: xAxis: { visible: false, }