Note that there are some explanatory texts on larger screens.

plurals
  1. POnvd3: remove y-axis tick labels from discrete bar chart
    primarykey
    data
    text
    <p>I am trying to remove y-axis tick labels from a discrete bar chart in nvd3.</p> <p>I already looked into the nvd3 source, but can't find an obvious function I could change. Can anyone point me to the solution?</p> <p>Update: Code</p> <pre><code>function Transform(value1, value2, chart_name,value3) { value3 = typeof value3 !== 'undefined' ? value3 : 'no_header'; var chart = nv.models.discreteBarChart() .x(function (d) { return d.label; }) .y(function (d) { return d.value; }) .staggerLabels(true) .tooltips(false) .showValues(true); var a = []; var f = [{ values: [] }]; d3.csv("../../csv/master.csv").get(function (error, rows) { if (error){ console.log(error); loadError("Uh Oh. This data set is missing... Try going &lt;a href='/'&gt;back to the start&lt;/a&gt;"); return; } for (var i = 0; i &lt; rows.length; i++) { a.push(rows[i]); } console.log(a[0].agency); for (var key = 0; key &lt; a.length; key++) { var b = a[key]; for (var c in b) { if (c != "agency" &amp;&amp; c != "division" &amp;&amp; c != "pod") { var d = b[c]; a[key][c] = +d; } } console.log(a[0].changes); } try { var e = $.grep(a, function (v) { return v.division == {{division|safe}}; }); var k = $.grep(e, function(v) { return v.agency == {{agency|safe}}; })[0]; console.log(k.division); } catch (TypeError) { loadError("Uh Oh. We could not find this combination\ of Agency &amp; Division. Try going back to the &lt;a href='/pitchview'&gt;selection menu&lt;/a&gt;"); return; } if (k.agency){ for (var g in k) { if (g == value1 || g == value2 || g == value3) { var h = { "label": g, "value": k[g] }; f[0].values.push(h); } } d3.select('#' + chart_name + ' svg') .datum(f) .transition().duration(500) .call(chart) nv.utils.windowResize(chart.update); return chart; } else { loadError("Uh Oh. We could not find this combination of Agency &amp;\ Division. Try going back to the &lt;a href='/pitchview'&gt;selection menu&lt;/a&gt;");}}); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload