New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverse RadiusAxes #6805

Closed
ghost opened this Issue Oct 10, 2017 · 0 comments

Comments

Projects
None yet
0 participants
@ghost

ghost commented Oct 10, 2017

I have a problem with inverse RadiusAxes. Despite I use higher version of Echart 3 I unable to inverse my radiusAxes. I set a range between 0 and 90 but I want to start the numbers from the origo with 90 and nut with zero. I tried the inverse command on Bar chart and it worked so that is why I do not understand why it doesn't work in my chart. I attach a picture of my result and my code.

Thank you in advance for your help!

skyplot_2

My code:

var myChart = echarts.init(document.getElementById('main'));
     
var data = [[73,45]];

option = {
    title: {
        text: ''
    },
    legend: {
        data: ['line']
    },
    polar: {},
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross'
        }
    },
    angleAxis: {
        type: 'value',
        clockwise: true, 
        min: 0,
        max: 360
    },
    radiusAxis: {
        type: 'value', 
        nameRotate: 90,
        inverse: true,  // <-- Despite I set it true my radius doesn't start with 90
        min: 0,
        max: 90   
        
        
    },
    series: [{
        coordinateSystem: 'polar',
        name: 'line',
        type: 'line',
        data: data
    }]
};
        
        
        myChart.setOption(option);

@100pah 100pah closed this in 1072441 Oct 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment