             graph.margin.top - 6
           else
             graph.height + graph.margin.top + 5 + vars[d].ticks.size
-      .attr "fill", if vars.shape.value is "area" then "white" else color
+      .attr "fill",
+        if vars.shape.value is "area"
+          "white"
+        else
+          textColor color
 
   texts = vars.g.labels.selectAll("text.d3plus_mouse_axis_label").data lineData
 

      .attr "height", (d) -> getText(d).height + 10
      .style "stroke",
        if vars.shape.value is "area" then "transparent" else color
      .attr "fill",
        if vars.shape.value is "area" then color else vars.background.value
      .attr "shape-rendering", (d) -> vars[d].mouse.rendering.value
      .style "stroke-width", (d) -> vars[d].mouse.width


fetchColor = require "../../../../../core/fetch/color.coffee"
fetchValue = require "../../../../../core/fetch/value.coffee"
legible    = require "../../../../../color/legible.coffee"
textColor  = require "../../../../../color/text.coffee"

module.exports = (node, vars) ->

