obata

Want to chenge the label position

Recommended Posts

atteribute xaxisname,yaxisname

how to chenge position?

I would like to add a unit at the end of the x axis of the graph

Finally, I am sorry that the words are bad

Share this post


Link to post
Share on other sites

Hi,

 

The x-axis and y-axis name would appear at the respective x and y axis lines. Please let us know where do you want to position the axis names with respect to this fiddle : http://jsfiddle.net/z1dfLoup/

Please check the documentation for axis name configuration : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/titles-and-axis-names#configure-font-cosmetic-properties-5

If you want to add an unit to the values, you can add any string that will be suffixed with the values using numberSuffix attributes. Please refer to the documentation link : https://www.fusioncharts.com/dev/chart-attributes/?chart=column2d&attribute=chart_numberSuffix

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Hi,

 

The xAxisName or yAxisName is not possible to position as per the shared image. The axis names are always aligned at the center of the axis lines.

 

Alternatively, you can use Text annotations to place any text anywhere on the chart. For your requirement, you can place the text annotations on top of the y-axis and at the right of the x-axis.

Please check the documentation link for more details about Text annotations : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations#create-text-annotations-4

Also for positioning the annotations : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations#positioning-annotations-15

 

Find a sample fiddle for reference : http://jsfiddle.net/4eLsb2v0/

 

Please note : Annotations are static in nature.

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Hi,

 

You can check the XML dataSource structure in the XML tab of the showcased chart in the below documentation link :
https://www.fusioncharts.com/dev/chart-guide/standard-charts/line-area-and-column-charts

 

Also you can get the XML using the getXMLData() API method on the chart object as below :
revenueChart.getXMLData();

Refer to the sample fiddle : https://jsfiddle.net/4eLsb2v0/2/

Then you can use the fetched XML in the chart dataSource. Check the below sample fiddle for reference :
https://jsfiddle.net/4eLsb2v0/1/

Documentation link for reference to getXMLData() API method : https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now