echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] ParallelChart can't set axisTick inside true

Open Demi1024 opened this issue 3 years ago • 1 comments

Version

5.3.2

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. Load echarts on demand
  2. use ParallelChart

Current Behavior

The documentation says that the default value of inside is false, and now I want to change the direction of the axis, the inside is true and it does not take effect
here is my code

import * as echarts from 'echarts/core';
import { ParallelComponent } from 'echarts/components';
import { ParallelChart } from 'echarts/charts';
import { SVGRenderer } from 'echarts/renderers';

echarts.use([ParallelComponent, ParallelChart, SVGRenderer]);

var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;

option = {
  parallelAxis: [
    {
      dim: 0,
      name: 'Price',
      axisLine: {
        inside: true
      },
      axisTick: {
        inside: true
      },
      axisLabel: {
        inside: true
      }
    },
    { dim: 1, name: 'Net Weight' },
    { dim: 2, name: 'Amount' },
    {
      dim: 3,
      name: 'Score',
      type: 'category',
      data: ['Excellent', 'Good', 'OK', 'Bad']
    }
  ],
  series: {
    type: 'parallel',
    lineStyle: {
      width: 4
    },
    data: [
      [12.99, 100, 82, 'Good'],
      [9.99, 80, 77, 'OK'],
      [20, 120, 60, 'Excellent']
    ]
  }
};

option && myChart.setOption(option);

add up code to online test The effect of running the code is as follows image

Expected Behavior

My expectation is to set the direction of the axis to take effect

Environment

- OS:macOS Monterey
- Browser: Chrome 100.0.4896.127
- Framework: React v16.13.0

Any additional comments?

No response

Demi1024 avatar Apr 28 '22 09:04 Demi1024

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Apr 27 '24 21:04 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar May 04 '24 21:05 github-actions[bot]