How to add title to Axis using Anychart widget?

0
This is sample JSON : [  {    "x": [ "giraffe", "elephant" ],    "y": [ 2, 4 ],    "type": "bar",    "orientation": "v"  } ]   The output of above JSON is chart without Axis title. So please what changes need to do in JSON to display chart with Axis title?
asked
2 answers
2

Hi Vijay,

add this in layout tab

 {  "title": "your title",  "xaxis": {    "title": "your x axis title"  },  "yaxis": {    "title": "your y axis title"  }}

answered
0

try this

{ "title": "your title", "xaxis": { "title": "your x axis title" }, "yaxis": [ { "title": "your left y axis title", "side": "left" }, { "title": "your right y axis title", "side": "right", "overlaying": "y" } ] } ]

answered