Forum - jschmidt-systemberatung.de

× php-RGraph und php-rgraph Joomla Content Plugin

Data from MySql Database using K2

  • Vlask
  • Autor
  • Besucher
  • Besucher
3 Jahre 7 Monate her #1250 von Vlask
Vlask antwortete auf Data from MySql Database using K2

jochen schrieb: 2.you cannot use percent values for width or height (html5 'canvas' doesnot support this)


Maybe found solution, but i'm not sure that can be used with joomla plugin and for sure i dont know how to properly implement the code....Simplest example can be found in offline RGRAPHs demos under name "A responsive Horizontal Bar chart"
They seems to be using responsive function to define graphs size as well fonts sizes according to screen resolutions. But i have to define them manually. Code looks like this...not sure that i can use it in this formatting...

}).grow().responsive([
                  {maxWidth: 600, width: 400, height: 200, options: {textSize: 8}},
{maxWidth: 900, width: 400, height: 200, options: {textSize: 12}},
{maxWidth: null, width: 700, height: 350, options: {textSize: 19}}

Info page about function is here -  www.rgraph.net/canvas/responsive.html

You think that this can be used together with joomla?

jochen schrieb: cannot access your flashchart sample ( vgamuseum.info/index.php/charts/fillrates ) - it kills  my browser (firefox)

It works in Opera, its disabled in chrome and firefox portable show something, but its not drawed properly. Thats why i need to change from flash plugin.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Jahre 7 Monate her - 3 Jahre 7 Monate her #1251 von jochen
jochen antwortete auf Data from MySql Database using K2
hi,

chart options  "responsive" has not (yet) been implemented - I have to look into this. Anyway this does only help with text and not with canvas-graphics. Canvas Size (width and height) must be set to number of pixels. (e.g. if you specify "100%" size will be set to "100"). You may google about this - you will find  lots of discussions about this topic..

There is no easy standard way from a server (php) perspective to find out the pixel-size of your document area within a browser client window,, in order to set canvas size to a desired value.
 
So the best and easiest way is in my opinion to leave it to the user.  
Letzte Änderung: 3 Jahre 7 Monate her von jochen.
Folgende Benutzer bedankten sich: Vlask

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.123 Sekunden
Powered by Kunena Forum
Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbesssern. Auf keinen Fall werden persönliche oder vertrauliche Daten gespeichert oder weitergegeben.