It is currently Sat Jul 11, 2020 12:09 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 90 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Thu Jul 04, 2019 8:11 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Bug fixed

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Fri Jul 05, 2019 10:32 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 651
Thorsten1867 wrote:
Bug fixed
Thanks for that.
But now: Example 13
If you click the green data point and then move the mouse, the
data point jumps 3 units below mousepointer.
As result of that, if you drag the point up to maximum of "80",
you can only reach a "76".
If you are going down and come to "0", the data point jumps
to "-1" and you can't reach or select the point anymore.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Fri Jul 05, 2019 12:23 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Bugs fixed

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Sat Jul 06, 2019 9:41 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 651
Thorsten1867 wrote:
Bugs fixed
Thanks for that.

Again example 15:

Drop down menu entries only work on the small colored symbols,
despite the occurence of the drop menu in the drawing area.
After hiding "Series 3" via drop down, "Display 'Series 3'" doesn't
display these data again. This is true for all data.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Sat Jul 06, 2019 10:42 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Bugfixes: Code and Example

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Jul 24, 2019 1:04 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 721
Location: Spain
Hi Thorsten1867, I'm back here to see if you can solve 2 things :)

1º) When the flag Chart::#PostEvents is active (as in example #15) even if you click the left mouse button it always detects #PB_EventType_RightClick EventType()

Image

2º) When I activate the flag Chart::#OutOfRange but I have deactivated the display of values, when a value is out of range it always appears (Whether or not the flag Chart::#OutOfRange is activated)

Image

It would be possible to hide this value (optionally or permanently)

As always, thank you so much for your work (and for reading to me).

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Jul 24, 2019 9:54 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: Bugfixes

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Jul 24, 2019 1:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 721
Location: Spain
Thorsten1867 wrote:
Update: Bugfixes
:D Thank you. It works fine now!

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Jul 24, 2019 4:45 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3302
Location: Boston, MA
Hi Thorsten1867, this is looking great. 8)
Will you be adding scatter plots? Meaning floating point X's and Y's.

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Jul 24, 2019 6:29 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
I've never used a scatterplot before.
Would you perhaps have an example so I can better imagine what the input data looks like?

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Sat Jul 27, 2019 4:31 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: Scatter Plot

Image

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Last edited by Thorsten1867 on Fri Dec 20, 2019 3:22 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Sat Jul 27, 2019 7:22 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3302
Location: Boston, MA
Cool, I will check it out. 8)
Scatter plots dominate my many reports.
Line charts/bar graphs are used for paretos, histograms.
Heat maps are the next trick!

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Dec 11, 2019 2:38 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: Flags #Left/#Right for legend added

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Wed Mar 04, 2020 5:09 pm 
Offline
User
User

Joined: Sun Feb 23, 2020 4:28 pm
Posts: 15
Hello Thorsten1867

I'm trying to use ScatterPlot with date on the X axes and double on the Y axes.
I'm using
Code:
Procedure ChartCreate(x, y, width, height)
  Chart::Gadget(#Gadget_Chart, x, y, width, height, Chart::#ScatterPlot|Chart::#Border|Chart::#ShowLines|Chart::#ToolTips|Chart::#AutoResize, #Window_Main)
  Chart::SetFlags(#Gadget_Chart, Chart::#Legend, Chart::#PostEvents)
  Chart::SetFlags(#Gadget_Chart, Chart::#AxisX, Chart::#Time|Chart::#Labels)
  Chart::SetAttribute(#Gadget_Chart, Chart::#Decimals, 2)
  Chart::SetMask(#Gadget_Chart, Chart::#AxisX, "%dd/%mm/%yyyy")
  Chart::ToolTipText(#Gadget_Chart, Chart::#Scatter$ + ": " + Chart::#Time$ + " - " + Chart::#DataY$ + " kg")
EndProcedure

to create the chart, I'm iterating with
Code:
Define day = Val(Right(ListeWeight()\Date, 2))
Define month = Val(Mid(ListeWeight()\Date, 5, 2))
Define year = Val(Left(ListeWeight()\Date, 4))
Chart::AddScatterItem(#Gadget_Chart, "Weight", WeightList()\Date, Date(year, month, day, 0, 0, 0), WeightList()\Weight)

to add data to the chart. I'm losing the decimals on the Y axis.

It seems that AddScatterItem, takes quad as an argument for X and Y axes, so decimal value are lost.
Is there another way to do it with decimals ?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Chart - Gadget
PostPosted: Thu Mar 05, 2020 11:44 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
So I have to figure out how I'm gonna do this.

Gesendet von meinem Aquaris X2 mit Tapatalk

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 90 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye