XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Apr 29日 09:31

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Custom charts
PostPosted: 2013年 Apr 20日 10:39 
Offline

Joined: 2013年 Jan 10日 06:25
Posts: 5
Helloes everyone!
Does anybody have any idea how to display custom information in the chart object without using cores? I've searched through forum and can't find anything concerning charts.
Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Custom charts
PostPosted: 2013年 Apr 21日 00:22 
Offline
User avatar

Joined: 2012年 May 12日 20:32
Posts: 559
Hi, you can uses javascript code to add data into Chart control:

Code:
  chart1.add(Random(100));
  chart1.clear();


example: viewtopic.php?f=11&t=2874&p=4236

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
 Post subject: Re: Custom charts
PostPosted: 2013年 Apr 21日 10:43 
Offline

Joined: 2013年 Jan 10日 06:25
Posts: 5
Thank you very much, Tony.
And another question - is there any way to adjust scale of chart? I'm trying to implement network traffic widget and there was 2 ways to do it:
1. Using one chart for both traffic directions, but it seems that there is no way to create 2 charts within one chart object.
2. Using 2 charts: for incoming and outgoing traffic. But i don't know how to display both charts in same scale, e.g. 100KB/sec for both charts. Without that widget is looking strange, especially when traffic in one direction is significantly greater that traffic in other direction. Or when there was heavy traffic usage (scale was adjusted to that) and long small traffic usage after that (there is almost straight line on the chart bottom).
I've chosen 2nd way and now trying to fine tune this widget.

And another question: is there any way to set/read network adapter name for NetMonitor core? Can't find any clear information related to core control, only user posts with !Update and !Clear commands.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group