Note that there are some explanatory texts on larger screens.

plurals
  1. POd3 bar chart obscured in firefox but not in chrome
    primarykey
    data
    text
    <p>I have strange case with d3 bar chart. I am able to see it fine with chrome, but in firefox it behaves as if some element is overlaying some part of it. But when I viewed the page in 3D in firefox it shows me the rectangles but they are just not visible on page. I am including the generated HTML generated with d3, which in chrome and firefox behave differently.</p> <pre><code>&lt;script type="text/javascript" src="js/bar_chart.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="d3/d3.v3.min.js"&gt;&lt;/script&gt;&lt;/head&gt; &lt;body&gt; &lt;div style="position:fixed; position:obsolute;/*for ie6*/ background-color: rgba(0,0,0,1.0); height:206px; width: 100%; top:0px; right:0px;" class="plot" id="barchart"&gt; &lt;br&gt;&lt;br&gt; &lt;p class="bob"&gt;&lt;/p&gt; &lt;svg class="bar"&gt;&lt;g transform="translate(20,0)"&gt;&lt;line x1="0" x2="1295" y1="149.5" y2="149.5" style="stroke: #ffffff;"&gt;&lt;/line&gt;&lt;line x1="0" x2="1295" y1="119.5" y2="119.5" style="stroke: #cccccc;"&gt;&lt;/line&gt;&lt;line x1="0" x2="1295" y1="89.5" y2="89.5" style="stroke: #cccccc;"&gt;&lt;/line&gt;&lt;line x1="0" x2="1295" y1="59.5" y2="59.5" style="stroke: #cccccc;"&gt;&lt;/line&gt;&lt;line x1="0" x2="1295" y1="29.5" y2="29.5" style="stroke: #cccccc;"&gt;&lt;/line&gt;&lt;line x1="0" x2="1295" y1="-0.5" y2="-0.5" style="stroke: #cccccc;"&gt;&lt;/line&gt;&lt;rect x="-0.5" y="119.5" width="64" height="30" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="63.5" y="89.5" width="64" height="60" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="127.5" y="71.5" width="64" height="78" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="191.5" y="35.5" width="64" height="114" fill="steelblue"&gt;&lt;/rect&gt; &lt;rect x="255.5" y="23.5" width="64" height="126" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="319.5" y="-0.5" width="64" height="150" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="383.5" y="17.5" width="64" height="132" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="447.5" y="41.5" width="64" height="108" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="511.5" y="59.5" width="64" height="90" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="575.5" y="71.5" width="64" height="78" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="639.5" y="83.5" width="64" height="66" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="703.5" y="77.5" width="64" height="72" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="767.5" y="59.5" width="64" height="90" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="831.5" y="29.5" width="64" height="120" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="895.5" y="41.5" width="64" height="108" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="959.5" y="47.5" width="64" height="102" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="1023.5" y="53.5" width="64" height="96" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="1087.5" y="41.5" width="64" height="108" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="1151.5" y="11.5" width="64" height="138" fill="steelblue"&gt;&lt;/rect&gt;&lt;rect x="1215.5" y="-0.5" width="64" height="150" fill="steelblue"&gt;&lt;/rect&gt;&lt;text class="rule" x="0" y="149.5" dx="6" text-anchor="middle" fill="white" font-size="14px"&gt;0&lt;/text&gt;&lt;text class="rule" x="0" y="119.5" dx="6" text-anchor="middle" fill="white" font-size="14px"&gt;5&lt;/text&gt;&lt;text class="rule" x="0" y="89.5" dx="6" text-anchor="middle" fill="white" font-size="14px"&gt;10&lt;/text&gt;&lt;text class="rule" x="0" y="59.5" dx="6" text-anchor="middle" fill="white" font-size="14px"&gt;15&lt;/text&gt;&lt;text class="rule" x="0" y="29.5" dx="6" text-anchor="middle" fill="white" font-size="14px"&gt;20&lt;/text&gt;&lt;text class="rule" x="0" y="-0.5" dx="6" text-anchor="middle" fill="white" font-size="14px"&gt;25&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt; &lt;/body&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.
    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