Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

line graph

by artperl (Acolyte)
on Apr 20, 2015 at 03:14 UTC ( [id://1123984]=perlquestion: print w/replies, xml ) Need Help??

artperl has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm getting familiarized with a very cool module, named SVG::TT::Graph. In the example provided. I see the the area under the graph has some opacity. I am not able to figure out & find out how to set this. Also to change the color of the line & the point. Appreciate your help monks...

Replies are listed 'Best First'.
Re: line graph
by Corion (Patriarch) on Apr 20, 2015 at 07:19 UTC

    Have you read the documentation of SVG::TT::Graph::Line? I find the applicable parameters documented there. Did you try the parameters?

    Maybe you can find a parameter that changes the area below the line?

Re: line graph
by CountZero (Bishop) on Apr 20, 2015 at 08:39 UTC
    What's the value of the area_fill parameter?

    If you want to change the colors, you will have to edit the stylesheet. Look-up "style_sheet()" in the docs: it explains how to use an external stylesheet.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re: line graph
by kcott (Archbishop) on Apr 20, 2015 at 13:07 UTC

    G'day artperl,

    SVG is a W3C Recommendation which is documented in Scalable Vector Graphics (SVG) 1.1 (Second Edition).

    Chapter 6, Styling, describes both the styling properties shared by CSS as well as those unique to SVG.

    The property which seems most relevant to your question is fill-opacity. This is not a CSS property so it won't appear in the CSS documentation (if that's where you looking).

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1123984]
Approved by Happy-the-monk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-24 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found