G2
G2 copied to clipboard
📊 The concise and progressive visualization grammar.
### 问题描述 > 【版本】:`@antv/g2@^5.1.12` > > 【场景描述】:散点图增加自定义的多色图例 > > 【问题】:设置两个以上颜色时,仅前两个颜色生效 > > 【代码示例如下】: > ```javascript // 示例来源于 https://g2.antv.antgroup.com/zh/examples/general/point/#point-basic import { Chart } from '@antv/g2'; const chart = new Chart({ container:...
### 问题描述 Version:5.0 目标:数据量较大,想根据数据源中的标记位过滤数据,实现展示部分 label 的效果。 selector 方法前几次执行的入参是:`any[](数据系列), undefined, undefined`,后面执行的入参是:数据项、索引、数据系列。 ### 重现链接 _No response_ ### 重现步骤 此示例是用 demo ”归一化折线图“ 改写的,在 codeSandBox 执行比较卡,就不放链接了 ` import { Chart } from "@antv/g2"; const...
### 问题描述 ```html f2 window.onload = function() { const chart = new G2.Chart({ autoFit: true, container: 'container' }) chart.options({ type: 'interval', height: 640, data: { type: "fetch", value: "https://gw.alipayobjects.com/os/bmw-prod/79fd9317-d2af-4bc4-90fa-9d07357398fd.csv", },...
### 问题描述 https://github.com/antvis/G2/assets/14211764/94e311f3-8fd0-44f4-96e3-c8ebc668cf83 同时使用 `elementSelect === true` 和 `elementHighlight.background === true` 时 预期:选中的高亮状态保存,除非我取消选中 当前:元素的高亮状态会在鼠标移走后跟着消失 ### 重现链接 _No response_ ### 重现步骤 _No response_ ### 预期行为 _No response_ ### 平台 - 操作系统:...
### 问题描述 双轴图柱线混合图表不能区分图例类型,上一个大版本会自动根据类型区分,v5版本会被children内最后一个图的类型覆盖,无法独立设置 `itemMarker` ### 重现链接 https://codesandbox.io/p/sandbox/focused-tdd-lv35pq?file=%2Findex.ts ### 重现步骤 _No response_ ### 预期行为 期望看到不同图例类型,实际是相同的 ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari, Firefox]...
### 问题描述 使用 Ant Design Charts 2.0版本中的仪表盘组件 无法实现 有弧度的仪表盘 ### 重现链接 https://codesandbox.io/p/sandbox/focused-chatterjee-tg2x66 ### 重现步骤 1、 进入页面即可查看效果 设置style 中的arcRadius 无法实现 ### 预期行为 可以实现出 1.4x 版本 中圆弧形的仪表盘效果 ### 平台 - 操作系统: macOS...
### 问题描述  ### 重现链接 _No response_ ### 重现步骤 _No response_ ### 预期行为 _No response_ ### 平台 - 操作系统: [macOS, Windows, Linux, React Native ...] - 网页浏览器: [Google Chrome, Safari,...
### 问题描述 G2 V5.0 1. 坐标轴刻度值过长,设置 rotate 同时开启缩略轴,刻度值会遮挡缩略轴,且拖动缩略轴时 rotate 被重置 2. 为了解决遮挡尝试配置刻度值缩略,但拖动缩略轴时 rotate 及缩略效果都失效了 3. 刻度值缩略后,hover 刻度值时没有 tootltip 展示完整的刻度值,G2 V4.0 是有这个功能的 ### 重现链接 https://codesandbox.io/p/sandbox/zen-marco-x5yps4?file=%2Findex.ts%3A32%2C5 ### 重现步骤 _No response_ ### 预期行为...
### 问题描述 import { Chart } from '@antv/g2'; const data = [ { year: '1991/04/10', value: 3 }, { year: '1992/04/10', value: 4 }, { year: '1993/04/10', value: 3.5 },...
### 问题描述 import { Chart } from '@antv/g2'; const data = [ { item: '事例一', count: 40 }, { item: '事例二', count: 21 } ]; const chart = new Chart({...