chinmaymk / angular-charts

angular directives for creating common charts using d3
MIT License
1.03k stars 270 forks source link

Pie charts not using the tooltip attribute #147

Closed ali-bugdayci closed 9 years ago

ali-bugdayci commented 9 years ago

Hi,

1) Bar charts use the tooltip variable inside the data, but pie charts don't. It displays just the count.

2) In bar chart Is there a way to draw charts where legend values are written tilted, since I have a long list of legend values, it gets garbled

3) In bar chart Is there a way to switch x and y axis values. If I can put the legends on the y axis, then the text does not have to get garbled.

Reason I am using pie chart: On a long list of variables bar chart, and line charts legends get inside eachother. Hence pie chart seems to be the only option. But since we have a long list, it lists a long list of options below the chart.

chaosfinity commented 9 years ago

1) What version are you using? And can you post the data that is giving you issues

2) This feature should be available in the next release. Its in the development branch pr/137 which is currently functional but is changing constantly.

3) There is not a way to switch the axes. The y axis is a linear scale for numbers while the x axis is an ordinal scale for labels

ali-bugdayci commented 9 years ago

My version is "angular-charts": "~0.2.4",

When I switch to bar chart with same data it shows. My data is:

Object {data: Array[10]}
    data: Array[10]
        0: Object
            key: "DeviceInfo"
            tooltip: "DeviceInfo:1"
            x: "DeviceInfo"
            y: Array[1]
            __proto__: Object
        1: Object
ali-bugdayci commented 9 years ago

Hi,

I thought I was on the latest version. Sorry it seems to be fixed at 0.2.6