nvd3 Liniendiagramm, wie man Gitternetzlinien und Yaxis entfernt
Ich habe ein Liniendiagramm mit Sucher erstellt.
Hier ist mein Anfangscode
var chart = nv.models.lineWithFocusChart();
// chart.transitionDuration(500);
chart.xAxis
.tickFormat(d3.format(',g'));
chart.xAxis
.axisLabel("Date");
chart.xAxis.tickPadding(0);
chart.x2Axis
.tickFormat(d3.format(',g'));
chart.yAxis
.tickFormat(d3.format(',.2g'));
chart.y2Axis
.tickFormat(d3.format(',.2h'));
// chart.showYAxis(false);
Ich möchte die Beschriftungen der y-Achse entfernen (d. H. Ich möchte, dass keine Nummer auf der y-Achse angezeigt wird).
Ich möchte auch alle Gitternetzlinien entfernen.
gibt es so etwas wie chart.yAxis.somethinghere, um dies zu tun?
Vielen Dank