× Support forum for php-RGraph and php-rgraph content plugin for Joomla

Auto Rendering

4 Monate 17 Stunden her - 4 Monate 17 Stunden her #1209 von jochen
jochen antwortete auf Auto Rendering
seems that your plugin parms have been corrupted. Did you copy/paste my sample? Ensure that you paste with option "paste as plain text" otherwise imbedded html-codes may invalidate your input.
  Also  check with setting parm debug="1" and have a look at your html-page's source

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Monate 20 Stunden her #1208 von Tan
Tan antwortete auf Auto Rendering
There's a mistake. Could it be the order to publish the plugin? I changed the order but it has no effect.

{rgraph chart_name="chart" type="Bar" title="Update Chart with a click" width="600" height="300"
data="5000,5000,5000,5000,6000,7000,8000,8000,11000,9000" colorsSequential="true"
variant="3d" gutterBottom="105" gutterLeft="85" event_script="plugins/content/rgraph/js/tan-event-js/event-script-1.js" }csv{/rgraph}


php-rgraph.common.js:388 Uncaught TypeError: Cannot read property 'width' of null
at Object.RG.reset.RG.Reset (php-rgraph.common.js:388)
at home:262
RG.reset.RG.Reset @ php-rgraph.common.js:388
(anonymous) @ home:262
postMessage (async)
onclick @ home:1313

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Monate 23 Stunden her - 4 Monate 23 Stunden her #1207 von jochen
jochen antwortete auf Auto Rendering
hi,
this may help...-
see my sample at -> jschmidt-systemberatung.de/index.php?opt...5&Itemid=659&lang=en
 also have look at the sample event script: jschmidt-systemberatung.de/plugins/conte...aph/js/test_event.js

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Monate 1 Tag her #1206 von Tan
Tan antwortete auf Auto Rendering
Hi Joachim

Not working. I know, this is only javascript issue but I feel like an idiot. I trying with simple setted values but  chart refreshes with the first values. :(
I know I was so tired of you. I am so sorry.


event_script:
var worker=new Worker("/plugins/content/rgraph/js/tan-event-js/event-script-1-worker.js"); worker.addEventListener("message",function(e){ console.log(Array(e.data)); chart.data=Array(e.data); chart.grow();},false);

standalone script: 
var delay=5000;function Update(){var pass_data = '11,15,20'; postMessage(pass_data);setTimeout(Update,delay);}setTimeout(Update,5000);

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Monate 3 Tage her - 4 Monate 2 Tage her #1205 von jochen
jochen antwortete auf Auto Rendering
hi,
you will need plugin parms with parmeter event_script pointing to a script file containing event-script like this 
window.addEventListener("message",function(e)
         {var chart.data=(Array(e.data));
         chart.redraw(); },
         false);

a second (standalone) script would get the data and issue a post to trigger event-script ,,,:postMessage(yourdata,"*")... Eventscript would then do the update of data and redraw chart. 

so you have plugin parms:
{rgraph chart_name="chart" event_script="your-scriptfile" ...}cvs{/rgraph}

and your "data-Script" (e.g.) within your article.
   

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Monate 3 Tage her #1204 von Tan
Tan antwortete auf Auto Rendering
Dear Master,

I need your  support. I tryed a simple event_script with triggered a button but it's didn't change data. I don't understand where I'm doing wrong.



jQuery(document).ready(function() { jQuery("#growed").click(function(){var data = [1,2,3]; chartcsv_bar2.data=data; chartcsv_bar2.grow();}); var chartcsv_bar2 = new RGraph.Bar( {"chart_type":"Bar","id":"csv_bar2","data":[14,7,1],"options":{"gutterLeft":40,"gutterRight":10,"gutterTop":40,"gutterBottom":120,"colors":["#0052cc","#52CCA3","#996633","#339933","#00BFFF","#66ff33","191970","#FF6600","#e60000","#008000"],"backgroundColor":"rgba(240, 240, 240, 0.4)","colorsSequential":true,"linewidth":1.5,"backgroundGrid":true,"backgroundGridColor":"#000000","scaleDecimals":0,"textAccessible":false,"titleFont":"Arial","titleSize":11,"titleColor":"#555555","textFont":"Arial","textColor":"#555555","textSize":6,"tooltipsCssClass":"rgraph_tooltips","axisColor":"#000000","titleYaxisColor":"#555555","titleXaxisSize":9,"titleYaxisSize":9,"titleXaxisPos":0.3,"titleYaxisPos":0.3,"grouping":"stacked","labelsAbove":true,"labelsAboveSize":7,"labelsAboveDecimals":0,"tooltipsEvent":"onmousemove","variant":"bar","keyBackground":"rgba(145,168,238,0.4)","unitsPost":"psc.","textAngle":45,"variantThreedAngle":0.06,"shadow":true,"bevel":true,"scalePoint":",","scaleThousand":".","labels":["PRICING -> [Registered group\nSTART and send to\nCustomer Representative group]","PRICING -> [Customer Representative group\nACCEPT and send to\nDesign group]","PRICING -> [Registered group\nREROUTE and send to\nCustomer Representative group]"],"strokestyle":"rgba(250,250,250,0.1)","xlabelsOffset":5,"tooltips":["PRICING -> [Registered group\nSTART and send to\nCustomer Representative group]<br>14 pcs.\/ Total 22 pcs.","PRICING -> [Customer Representative group\nACCEPT and send to\nDesign group]<br>7 pcs.\/ Total 22 pcs.","PRICING -> [Registered group\nREROUTE and send to\nCustomer Representative group]<br>1 pcs.\/ Total 22 pcs."]}} ).grow();
});

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.147 Sekunden
Powered by Kunena Forum

Besucher

Heute: 122
Gestern: 84
Diese Woche: 122
Letzte Woche: 757
Dieser Monat: 2.466
Letzter Monat: 2.684
0156353
United States 33,3% USA
Germany 16,0% Deutschland
Russia 4,8% Russland
France 3,5% Frankreich
Italy 2,5% Italien
Indonesia 2,5% Indonesien
India 2,4% Indien
Poland 2,2% Polen

Total:

204

Länder

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.