TargetProcess / tauCharts

D3 based data-focused charting library. Designed with passion. Flexible.
https://www.taucharts.com
Other
1.91k stars 118 forks source link

On bar graph, x-axis doesn't be showen #601

Closed studB closed 3 years ago

studB commented 3 years ago

I get package like below,

data : [{"category":"Q","count":77},{"category":"S","count":644},{"category":"C","count":168}]

code :

var chart = new Taucharts.Chart({ type : 'bar', x : "category", y : "count", data : jdata, plugins: [ Taucharts.api.plugins.get('tooltip')(), Taucharts.api.plugins.get('legend')(), ] }) .renderTo('#chart');

show :

image

No a-xis is there, so can't check category name of each bar.

How fix it..

studB commented 3 years ago

I fix it..! Soultion is to set a height css property of parent element, '#chart' ..!