javascript - Rotate Labels nvd3 line chart -
i want rotate x-axis labels 90 degree because overlapping each other. have used rotatelabels isnt wotking
<nvd3-line-chart data="singlelinechartdata" id="singlelinechart" width="800" height="200" showxaxis="true" showyaxis="true" tooltips="true" interactive="true" rotatelabels="90" useinteractiveguideline="true" xaxistickvalues="xaxistickvaluesfunction()" xaxistickformat="xaxistickformat()" color="colorfunction()" isarea="false" margin="{left:50,top:50,bottom:50,right:50}" showlegend="true" legendcolor="colorfunction()" nodata="no data!"> <svg></svg> </nvd3-line-chart>
you have use 'xaxisrotatelabels'
instead of rotatelabels
<div ng-app='nvd3testapp'> <div ng-controller="examplectrl"> <nvd3-line-chart data="exampledata" showxaxis="true" showyaxis="true" tooltips="true" xaxisrotatelabels ="90" interactive="true"> </nvd3-line-chart> </div> </div>
working application
Comments
Post a Comment