最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

dimple.js - Dimplejs TimeAxis : How to make the label for the first tick also print? - Stack Overflow

programmeradmin1浏览0评论

I have a dimplejs plot showing months (1 to 12) on a time axis. (more details in this post)

var x = myLinePlot.addTimeAxis("x", "month");
myLinePlot.draw();
x.shapes.selectAll("text").attr("transform", `translate(55,-5)`); // offsetting tick labels

Because originally crossing y-Axis, the label of the first tick is missing, i.e. label "1" for the month of January. The DOM confirms that the shape for the first tick label is missing.

In dimple's code, I could not find how to force the first tick's label to show, for instance by removing some condition.

Does this behavior comes from d3?

Is there a way to force the first tick's label to print?

I did an attempt with x.overrideMin but I am not sure that it was relevant in this context and was unsucessful with it.

发布评论

评论列表(0)

  1. 暂无评论