A Guy
A Guy

Reputation: 23

How to show only category axes values in AMCharts for AMStock chart

I am working with amchart to build a strip chart using AMstock (rotated).

Is there a way to display only category axes values on a panel? see sample screenshot here.

I have 2 charts. Left should show only category axes values. the right shows the strip chart.

Right now I am stuck at creating the chart options to show only category axes values (double values).

Any help will be appreciated.

Upvotes: 0

Views: 50

Answers (1)

A Guy
A Guy

Reputation: 23

I was able to solve this by removing the stock graphs entry for my panels.

...
'panels': [
        {
          'showCategoryAxis': true,
          'title': 'Value',
          'percentHeight': 100,
          'lineThickness': 2,
          'autoMargins': true,
          'autoMarginOffset': 0,
          // as you can see, the stockGraphs is commented out.
          // 'stockGraphs': [{
          // }],
        }
      ],
...

hopefully this helps somebody.

Upvotes: 1

Related Questions