Skip to content
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

漏斗图的引导线怎么让它在左边显示 #1576

Open
siaschenbin opened this issue Dec 7, 2024 · 5 comments
Open

漏斗图的引导线怎么让它在左边显示 #1576

siaschenbin opened this issue Dec 7, 2024 · 5 comments

Comments

@siaschenbin
Copy link

现在漏斗图的引导线好像只能 在右边吧,有办法让它在左边么
设置了偏移 只有文字过去了,引导线还在右边

@AAChartModel
Copy link
Owner

Highcharts 貌似没这个选项.

@siaschenbin
Copy link
Author

WX20241209-142239
雷达图外层“新签”的文字怎么设置,我设置了categoriesSet 属性就会旋转,不设置就会显示 01234

@AAChartModel
Copy link
Owner

如下配置 options :

Highcharts.chart('container', {
    chart: {
        polar: true,
        type: 'line' // 或 'column'
    },
    title: {
        text: '五边形雷达图示例'
    },
    pane: {
        startAngle: 0,
        endAngle: 360
    },
    xAxis: {
        categories: ['指标1', '指标2', '指标3', '指标4', '指标5'],
        tickmarkPlacement: 'on',
        lineWidth: 0
    },
    yAxis: {
        gridLineInterpolation: 'polygon',
        lineWidth: 0,
        min: 0
    },
    series: [{
        name: '数据系列1',
        data: [5, 3, 4, 7, 2],
        pointPlacement: 'on'
    }]
});

最终图表:

chart

@AAChartModel
Copy link
Owner

对应的 OC 代码:

- (AAOptions *)radarChartWithCategories {
    return AAOptions.new
    .chartSet(AAChart.new
              .polarSet(true)
              .typeSet(AAChartTypeLine))
    .titleSet(AATitle.new
              .textSet(@"五边形雷达图示例"))
    .xAxisSet(AAXAxis.new
              .categoriesSet(@[@"指标1", @"指标2", @"指标3", @"指标4", @"指标5"])
              .tickmarkPlacementSet(@"on")
              .lineWidthSet(@0))
    .yAxisSet(AAYAxis.new
              .gridLineInterpolationSet(@"polygon")
              .lineWidthSet(@0)
              .minSet(@0))
    .seriesSet(@[
        AASeriesElement.new
        .nameSet(@"数据系列1")
        .dataSet(@[@5, @3, @4, @7, @2])
        .pointPlacementSet(@"on")
    ]);
}

@siaschenbin
Copy link
Author

感谢老哥,愿前程似锦一路繁花

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants