Ad Widget

Collapse

Graph graph title scaling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joedson
    Junior Member
    • Jul 2011
    • 19

    #1

    Graph graph title scaling

    Hello guys,

    Does somebody know how to set up
    the size (the font) of graph title bigger?

    Thanks in advance!
    Last edited by joedson; 30-08-2011, 17:22.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    not really (without hacking php).

    Zabbix 3.0 Network Monitoring book

    Comment

    • joedson
      Junior Member
      • Jul 2011
      • 19

      #3
      Richlv, do you know wich specif part of the
      php (or other) source code, I could to change?

      Thanks!

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        sorry, i don't know that right now without additional investigation. a quick search reveals http://www.zabbix.com/forum/showthread.php?t=15378 - you could take a look at that patch and figure out where it changes the font scaling, maybe
        Zabbix 3.0 Network Monitoring book

        Comment

        • joedson
          Junior Member
          • Jul 2011
          • 19

          #5
          Richlv, I have looked at this, unfortunately
          its doesn't helped; looking at that post I only
          can change the size of legend.

          I have looked for the string "fontsize" inside
          the files (with the command grep -ir fontsize ./);
          into zabbix php frontend directory, but once again,
          I didn't found how to change the size of title.

          Thanks anyway!

          Comment

          • joedson
            Junior Member
            • Jul 2011
            • 19

            #6
            Guys,

            I discovered that that function wich write
            the texts in the graphs, is: function imageText($image, $fontsize, $angle, $x, $y, $color, $string); which is in php script graphs.inc.php;
            that is inside the directory /.../zabbix/include/graphs.inc.php
            ;

            So I made a change that source code in this function,
            adding this:

            function imageText($image, $fontsize, $angle, $x, $y, $color, $string){
            $gdinfo = gd_info();

            //Search for the paterner wich are at the graphs title
            //If add
            if(strstr($string,"(") && strstr($string,")") && strstr($string, ":")){
            $fontsize = 16;
            }


            So a I recieved the expected result, as show in the
            pictures below:

            Graph before change:


            Graph after change:


            PS: I searched for for all php scripts and
            classes which call the funciton imageText
            and after change the parameter fontsize;
            I get change in everything less int the title.

            Does somebody know a better solution?

            Comment

            Working...