jettro / c3-angular-directive

Contains angularjs directives that use c3js to create good looking graphs
http://jettro.github.io/c3-angular-directive/
MIT License
203 stars 98 forks source link

Duplicate categories in x-axis not shown #124

Open sathishkumar1911 opened 8 years ago

sathishkumar1911 commented 8 years ago

I am using "chart-x" attribute of "c3chart" directive like chart-x: "{'id':'x'}". The categories id have duplicate values like [{id:'category1'}, {id:'catefory1'}, {id:'category1'}, {id:'category1'}] but this all chart categories not shown in the chart. Can you please help me on this.

image

jettro commented 8 years ago

I am afraid this is a serious problem not easy to overcome. The label is used in a map like structure, therefore the id must be different for all columns. I will double check it, but I am almost certain.

sathishkumar1911 commented 8 years ago

I fixed this issue by downgrading c3 library version because i explicitly mentioned c3 version in my bower.json. I faced this issue when i use c3-angular-directive version 1.2.0 with c3 version 1.4.11. It is working fine in c3-angular-directive version 1.2.0 with c3 version 1.4.10.

sathishkumar1911 commented 8 years ago

I am getting the same issue in C3-angular 1.3.1 version. Hence reopening this issue.