Comments (4)
一般情况下用户想指定分类类型的顺序,你的需求正好相反? 我看了现在的情况,分类的顺序会根据数组的顺序调整,如果你想不改变字符串的顺序,那么可以自己定义列的字符串顺序:
var defs = {
name: {
value: ['a','b','c']
}
}
chart.source(data,defs);
from g2.
我想你误解我的意思了。我并不在意分类类型的顺序。我是想按照value值排序显示(事实上已经是排序过的数组,只要按照数组显示即可)。
我的需求是无论是sourceData还是changeData 都按照数组本来的顺序显示
from g2.
我试了下,G2现在如果changeData后,分类类型的顺序会根据当前数据集重新排序的。
from g2.
同求该问题,应该有参数可以避免G2自动排序的,之前用的旧版但是不美观;新版切换过来,发现文档太难找了,参数配置变化太大,有的还找不到,不行就只能再切回旧版了
from g2.
Related Issues (20)
- G2 5.1.18中柱状图X轴数据过多时(200条),轴刻度间距怎么设置大点 HOT 5
- antv/g2 5.0 移除了getCanvas等方法后怎么同步拿到画布内容 HOT 1
- G2 5.1.18 柱状图elementSelect中background的样式修改 HOT 1
- 雷达图点击图例后,线条会飘到外面 HOT 1
- 柱线组合图,坐标轴转置之后,tooltip显示缺失 HOT 1
- brushXHighlight属性样式设置会导致一部分不符合预期高亮 HOT 1
- changeData更新数据。图例没有实时更新 HOT 3
- 当 encode.series 指定了某一个值时, tooltip.items 自定义 name 会失效
- link mark 设置 lineWidth 的时候,箭头显示不对
- overflowHide 对于标签在图形上放置不下的时候,随机隐藏标签。 HOT 5
- Tooltip、Brush 等交互在 shadow dom 内失效 HOT 4
- 柱线组合图,坐标轴转置之后,tooltip显示缺失
- chart.facetRect()分面不支持仪表盘
- 设置x轴刻度数无效
- 官方示例水波图NaN% HOT 1
- 答疑labelAutoHide使用 HOT 10
- 开启缩略轴,数据标签被裁切 HOT 1
- 开启缩略轴(slider)后,数据标签(label)不响应缩略轴变化
- 在shadow dom里,并且在多层容器下,tooltip位置出现偏离 HOT 4
- X轴是否支持二级,目前看示例都只有一级 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g2.