admin管理员组文章数量:1387383
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.
本文标签: dimplejsDimplejs TimeAxisHow to make the label for the first tick also printStack Overflow
版权声明:本文标题:dimple.js - Dimplejs TimeAxis : How to make the label for the first tick also print? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744504781a2609529.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论