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