FUNction

Results 10 comments of FUNction

``` ... ``` I read this issue and tried to use the same string as draggableid and key, but it didn't work. So I have to close strict mode to...

尝试了在官网散点地图demo上再组合一个折线图的思路~顺带加了流光动画。 效果及代码如下: ![demo](https://github.com/VisActor/VChart/assets/104673088/5ce2b444-4209-4223-bae6-42516ec95fb1) ``` const response = await fetch('https://geojson.cn/api/data/china.json'); const geojson = await response.json(); VChart.registerMap('world', geojson); const dataResponse = await fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/geojson/earthquake.json'); // const earthquakeData = await dataResponse.json(); const earthquakeData =...

想请问一下,我在demo中使用了第三方的geojson,这是否需要修改?

> > 想请问一下,我在demo中使用了第三方的geojson,这是否需要修改? > > 先声明一下来源吧, 好的ovo

很抱歉,我在commit时遇到了这样的问题,想知道应该如何解决 ``` $ git commit -m 'docs: add a map with flying lines demo' The rush.json configuration requests Rush version 5.94.1 Transforming C:\Users\Admin\Desktop\VChart\common\config\rush\.npmrc --> "C:\Users\Admin\Desktop\VChart\common\temp\install-run\@[email protected]\.npmrc" Installing @microsoft/rush... Error: Unable to...

> > 很抱歉,我在commit时遇到了这样的问题,想知道应该如何解决 > > ``` > > $ git commit -m 'docs: add a map with flying lines demo' > > The rush.json configuration requests Rush version 5.94.1 >...

okk,不过是指demo截图嘛? ![map-with-flying-lines_1.9.1.png](https://img2.imgtp.com/2024/05/17/wSRIKsI0.png)

hello,我正在尝试实现这个feature,但是似乎遇到了一点问题。 ``` // VChart\packages\vchart\src\data\transforms\pie.ts if (data.length === 0 && showEmptyCircle) { data[0] = {}; appendArcInfo(data[0], startAngle, endAngle); } ``` ![bad_pie](https://github.com/VisActor/VChart/assets/104673088/6941c412-544b-4df6-a1ea-f45f17af76c8) 我使用的spec是`VChart\packages\vchart\__tests__\runtime\browser\test-page\pie.ts`,只对`data`项作了修改(将`values`设为空数组),不确定为什么默认情况下绘制的圆仅有3/4,想冒昧问一下。

非常感谢您的回复!我尝试在上述pr的基础上实现`emptyCircleStyle`接口时仍然遇到了一些问题,并且囿于我本身的能力以及对VChart源码的理解有限,尝试完成该feature还是有些操之过急,但我依然希望提出我的思路并得到斧正。 我的接口设计如下: * `pieChart.pie.showEmptyCircle` * `pieChart.pie.emptyCircleStyle` 在绘制过程中,我发现只有`this._pieMark`可以获取完整的style spec,`initMarkStyleWithSpec`在处理`this._emptyArcMark`时所接收到的`spec`是空对象(`undefined`则是`initMarkStyleWithSpec`的第三个参数`key`)。 ![problem](https://github.com/VisActor/VChart/assets/104673088/ed974db0-a9f0-497a-9b2a-99965ee03a16) 我期望当数据为空且`showEmptyCircle`为`true`时,能够通过`initMarkStyleWithSpec`方法为`emptyMark`设置自定义样式。但由于`spec`接收到的是空对象,导致样式没有正确应用。虽然以下实现可以绕开这个问题实现自定义占位圆样式,但我认为这不应该是正确的方法。 ``` initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void { super.initMarkStyleWithSpec(mark, spec, key); if (mark.name === this._pieMarkName) { // radius 配置需要额外处理比例值...