Questions tagged [g2plot]
The g2plot tag has no usage guidance.
11
questions
0
votes
0
answers
37
views
How to build a Line chart on g2plot so that the series are built from numeric fields
guys!
I'm woking with library using full api of https://g2plot.antv.antgroup.com/en/api/plots/line
(https://consta.design/libs/charts/components-line-stable/dev)
The data looks like an array of ...
0
votes
0
answers
42
views
How can I make this same graph ant g2 plot
I'm trying to implement this same graph, I almost have it but I can't put the titles that are in gray, for each category to each subgroup, do you know how to do it?
that's how I have it so far
I am ...
0
votes
1
answer
400
views
antd charts: remove truncation of text in legend
I'd like to achieve something fairly simple inside an antd chart.
Antd is truncation legend items and is adding "...". I want to remove that truncation and instead display the whole label.
I ...
2
votes
2
answers
214
views
Data wrong display using @antv/g2plot.js version 2+
I have been trying to use G2plot (https://g2plot.antv.vision/) for a basic line graph. I made some tests a while ago with the 1.28 version and it was working fine. I removed some config that became ...
4
votes
1
answer
2k
views
Ant design charts Space between points proportional to x-axis values
How can I realise space between points proportional to x-axis values with @ant-design/charts.
CodeSandbox: https://codesandbox.io/s/lucid-williams-v5jx9?file=/src/Chart.jsx
0
votes
1
answer
619
views
G2Plot with nextjs. Stacked graph not working
I want to create an stacked graph using G2plot. Because of this I have to create 2 files one for the component. Another for the page that will call component using dynamic I
import React, { ...
1
vote
1
answer
340
views
React enzyme jest test cases are failing with antv g2plot
I'm using the React Enzyme Jest module to test my React app which contains the antv/g2plot module for charts. While I am using the module, the test case isn't running but after removing it, it's ...
0
votes
1
answer
304
views
Synchronise 2 charts interactions with g2plot
I'm using G2plot (https://github.com/antvis/G2Plot) and I want to synchronise my 2 charts when I have a hover on one chart ? For compare as a benchmark. I want keep the same the hover effect (the ...
0
votes
1
answer
540
views
G2Plot AntV library. Customize a Bullet Chart tooltip (display names instead of indices)
Is it possible to customize a tooltip of a Bullet Chart to display names instead of indices?
0
votes
1
answer
175
views
G2Plot chart stack wrong column
EDIT: add a snippet, code below:
<div id="app"></div>
<script src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.js"></script>
<script>
const plot = new G2Plot....
0
votes
2
answers
119
views
Having issues while converting one piece code of code to jsx
I am new to react. So please pardon my naiveness. I have the following piece of react code:
import { Line } from '@antv/g2plot';
const data = [
{ year: '1991', value: 3 },
{ year: '1992', value: ...