Dimitrije Zoroski
Dimitrije Zoroski

Reputation: 351

Dygraphs.js not showing second value

I have this website, where i use Dygraphs to create graph for currency compare, everything works fine except this strange behavior

Date,EUR,CHF,CAD

Grph only show first and third value, always skip second .

 g2 = new Dygraph(
                   document.getElementById("graphdiv2"), csv,
                   {
                       showRangeSelector: true,
                       title: Value1SFontcolor + Value2SFontcolor + Value3SFontcolor,
                       fillGraph: true,
                       animatedZooms: true,
                       colors: ['blue', 'green', 'purple'],
                       underlayCallback: function (ctx, area, dygraph) {
                           ctx.strokeStyle = 'black';
                           ctx.strokeRect(area.x, area.y, area.w, area.h);
                           area.color = 'black';
                       }
                   });

csv :
Date,EUR,CNY,CHF
2012/12/10,113.942200,0.000000,94.307400
etc...

How to resolve this bug, i copy js files from offical site

Upvotes: 0

Views: 122

Answers (1)

Dimitrije Zoroski
Dimitrije Zoroski

Reputation: 351

My problem was in css file, i change this
.dygraph-legend span:nth-child(2) { display: none; }
and everything works fine... douh

Upvotes: 1

Related Questions