amcharts / amcharts3

JavaScript Charts V3
Other
395 stars 129 forks source link

How to show labels on axis #197

Open NagavijayColan opened 6 years ago

NagavijayColan commented 6 years ago

Hi Team,

image

In the Above,

1) How to move Y-Axis to outside of the chart.

I have tried inside : false, "showLastLabel" : true && marginLeft : 70 || marginRight : 80

2) In X- axis ,I have Day data along with minutes data. While plotting chart it is showing only day Candles. If I plot using "groupToPeriods": ["30mm"] then it is showing 30min candles but it is not showing axis labels based on 30 minutes as showed in image. How can i solve this.

Please help me.

amcharts commented 6 years ago

New comment from Zendesk by Christine Stone on ticket 38414. (replying here will automatically notify amCharts support agent)

Hi,

1 - To move the labels outside of the chart area, you can set inside to false in valueAxesSettings:

  "valueAxesSettings": {
    "inside": false,
  },

https://docs.amcharts.com/3/javascriptstockchart/ValueAxesSettings#inside

This example also has the labels outside of the chart area: https://www.amcharts.com/demos/stock-comparing-external-data/

2 - The category axes uses minPeriod to determine the smallest period of data in the chart. Since you are using minute data you can change it to mm:

  "categoryAxesSettings": {
    "minPeriod": "mm"
  },

http://docs.amcharts.com/3/javascriptstockchart/CategoryAxesSettings#minPeriod

Hopefully this helps, let me know if you have any questions.

Yours sincerely,

Chris Stone

amCharts