Coder Social home page Coder Social logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I believe it's a Firefox bug, see:

https://bugzilla.mozilla.org/show_bug.cgi?id=403984

Original comment by olau%[email protected] on 6 Feb 2008 at 9:11

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
[deleted comment]

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Ooops. It seems you're completely correct.

I think that (when printing) the legend would work best with a small line next 
to the
text rather than (I'm guessing) a box with a background color - see attached PDF
printed from Safari.

(Flot is truly fantastic by the way)

Original comment by [email protected] on 8 Feb 2008 at 8:56

Attachments:

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Hm, yeah, the print doesn't look right in that PDF. Someone needs to go through
printing in various browsers at some point.

Original comment by olau%[email protected] on 11 Feb 2008 at 11:08

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
[deleted comment]

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Maybe do something like replace 
<div style="width:14px;height:10px;background-color:' + series[i].color +
'">
with
<div style="width:14px;height:1px; border:5px solid' + series[i].color + ';
background-color:' + series[i].color + '">
or similar

in function insertLegend()

as borders print out, whereas background-colors don't

Original comment by [email protected] on 11 Feb 2008 at 6:28

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Aha. I'll try that. Thanks!

Original comment by olau%[email protected] on 12 Feb 2008 at 9:27

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
i made a slight change to comment 6 and it seems to work in all browsers:

'<td class="legendColorBox"><div style="border:1px solid ' +
options.legend.labelBoxBorderColor + ';padding:1px"><div
style="width:12px;height:0px;border:5px solid ' + series[i].color +
';background-color:' + series[i].color + ';overflow:hidden"></div></div></td>'

Original comment by bpederse on 1 Nov 2008 at 4:25

from flot.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Hm, I would have given bonus points for a solution that didn't change the 
looks. But
I have put the legend idea into the code now.

I'll close the bug, if you find other issues, we can take them separately. :)

Original comment by olau%[email protected] on 3 Nov 2008 at 2:14

  • Changed state: Fixed

from flot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.