RMChart files

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: RMChart files

#11 Post by Eugene Lutsenko »

c-tec wrote:Hello,
for my webinterface I use chart.googleapis.com because internet is always available at my customers and nothing to link or install. See attached screenshot for example, you only have to post a string with the data and parameters, then you get back the image. Have not tried with loadfromurl(), but should work.
regards
Rudolf
I'd love to learn how to use this tool. Is it possible to give the job to the graphical visualization of the tables from the program? It may look an example that demonstrates this possibility. xb2net.dll I have.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: RMChart files

#12 Post by rdonnay »

It says it can't find the RMChart.ocx.
This is what you need.
To register it, run RegSvr32 RmChart.Ocx
Attachments
rmchart.zip
(318.72 KiB) Downloaded 646 times
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: RMChart files

#13 Post by c-tec »

Hello,
here a little sample, you see its very simple, the API is well documented. You have to save the result in a file.
regards
Rudolf

Code: Select all

function gc_url_3dpie(nSizeX,nSizeY,nVal1,nVal2,cText1,cText2,color1,color2)
******************************************************************
local cUrl := "https://chart.googleapis.com/chart?chs=",cColor := ""
if !empty(color1) .and. !empty(color2)
     cColor := "&chco=" + color1 + "|" + color2
endif
cUrl += ntrim(nSizeX) + "x" + ntrim(nSizeY) + "&chd=t:" + ntrim(nVal1) + "," + ntrim(nVal2) + "&cht=p3&chl=" + uuml(cText1) + "|" + uuml(cText2) + cColor
cUrl := [<img src="] + cUrl  + [" />]
return cUrl

function gc_url_bvs(lImgTag,nSizeX,nSizeY,aData)
******************************************************************
local cUrl := "https://chart.googleapis.com/chart?chs=",x,cColor := ""
local cData := ""
local cText := ""
for x := 1 to len(aData)
     cData += ntrim(aData[x,1]) + if(x=len(aData),"",",")
     cText += uuml(aData[x,2]) + if(x=len(aData),"","|")
     if len(aData[x]) > 2
          cColor += aData[x,3] + if(x=len(aData),"","|")
     endif
next x
if !empty(cColor)
     cColor := "&chco=" + cColor
endif
cUrl += ntrim(nSizeX) + "x" + ntrim(nSizeY) + "&chd=t:" + cData + "&chxt=x,y&chbh=10,5,10&cht=bvs&chxl=0:=" + cText + cColor
cUrl := [<img src="] + cUrl  + [" />]
return cUrl

Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

Re: RMChart files

#14 Post by Andy Edward »

rdonnay wrote:
It says it can't find the RMChart.ocx.
This is what you need.
To register it, run RegSvr32 RmChart.Ocx
Thanks Roger, it works now.

Is it safe for me to say that Express++ will continue to have the commands for future releases of Express++?

Regards,

Andy

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: RMChart files

#15 Post by rdonnay »

Is it safe for me to say that Express++ will continue to have the commands for future releases of Express++?
Yes, they will always be supported.
I use the DCRMCHART system in a product that I support for PTI Technologies.
http://www.pti-world.com/
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: RMChart files

#16 Post by Cliff Wiernik »

If you go to the powerbasic forum, https://powerbasic.com/support/pbforums ... hp?t=50325 and login to this thread, you can download the files.

Cliff

Post Reply