简体   繁体   English

3d 散点图中的个别尺寸和颜色

[英]individual size and color in 3d scatter lighningchart

Good morning,早上好,

I am creating a 3dscatter lighningchart graph and I want to have individual colors in a 3d scatter Lightningchart series/ #lightningchart.我正在创建一个 3dscatter 闪电图表图,并且我希望在 3d 散点闪电图表系列/#lightningchart 中有单独的 colors。 I have individualPointSizeEnabled set to true as wel:我也将 individualPointSizeEnabled 设置为 true:

my series:我的系列:

const pointSeries3D_yclass = chart3D.addPointSeries({ individualPointSizeEnabled: true })
    .setPointStyle(new PointStyle3D.Triangulated({
    fillStyle: new SolidFill({ color: ColorRGBA(245, 66, 209, 100) }),
    size: 3,
    shape: 'sphere'
    }))
    .setName('1 januari')

my series data:我的系列数据:

pointSeries3D_yclass.add([
{ x: 5.9738, y: -7.79972678, z: 347.9487, size: 15, value: 1902, color: ColorRGBA(0, 255,0) },
{ x: 5.1842, y: -7.69972678, z: 301.9554},
{ x: 4.0684, y: -7.19972678, z: 236.965},
{ x: 6.5575, y: 4.20027322, z: 381.9437, size: 20, value: 2022, color: ColorRGBA(0,255,0 )}
])

Sizes do work but the colors don't, where and how can I enable individual colors / fill color?尺寸确实有效,但 colors 没有,我在哪里以及如何启用单个 colors / 填充颜色?

See https://www.arction.com/lightningchart-js-api-documentation/v3.4.0/interfaces/pointseriesoptions3d.html#individualpointcolorenabled请参阅https://www.arction.com/lightningchart-js-api-documentation/v3.4.0/interfaces/pointseriesoptions3d.html#individualpointcolorenabled

1: individualPointColorEnabled must be enabled when the series is created. 1: individualPointColorEnabled必须在创建系列时启用。

 // Example, enable PointSeries3D data `color` property.

 const pointSeries3D = chart3D.addPointSeries({
     individualPointColorEnabled: true
 })

2: individualPointColorEnabled must be enabled in order to style PointSeries3D with IndividualPointFill . 2:必须启用individualPointColorEnabled才能使用IndividualPointFill设置 PointSeries3D 的样式。 See PointSeries3D.setPointStyle for more detailed information.有关更多详细信息,请参阅 PointSeries3D.setPointStyle。

So in your code snippet, change fillStyle to new IndividualPointFill()因此,在您的代码片段中,将 fillStyle 更改为new IndividualPointFill()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM