dc.js-与轴相关的查询 [英] dc.js - queries related to axis

查看:84
本文介绍了dc.js-与轴相关的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对dc.js中的axis有一些疑问.

I have some queries with the axis in dc.js.

我正在使用折线图和行图.

I'm using line and row chart.

如何以不同的顺序排列行图标签?

How can i arrange the row chart labels in a different order?

如何将折线图的y-axis设置为20或30或50,而不是0.

And how can I set the y-axis of a line chart to start to 20 or 30 or 50 instead of 0.

这可以帮助我吗?

小提琴 我想使y轴从200开始在折线图中.

Fiddle I wanted to make the y axis to start from 200 in the line chart.

并且也帮助我如何在一周内安排行图.即星期一,星期二等.

And also help me in how to arrange the row chart in order of a week. i.e., monday, tuesday and so on.

推荐答案

我找到了它.我是如此愚蠢,以致d3.scale.linear没有闪烁.终于用.(d3.scale.linear().domain([50, 500]))

I found it. I was so stupid that d3.scale.linear didn't flash. Finally did it using .(d3.scale.linear().domain([50, 500]))

这篇关于dc.js-与轴相关的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆