[Module] Chart - Gadget
Re: [Module] Chart - Gadget
Yeah!Thorsten1867 wrote:A chart with horizontal bars and a line chart are planned.
PB 6.0x, PureVision User.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] Chart - Gadget
Update: Bar Chart with horizontal bars
Last edited by Thorsten1867 on Fri Dec 20, 2019 3:16 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] Chart - Gadget
Nice, but only for Windows.diskay wrote:Refer to the code here
https://github.com/mity/mctrl
My module should also work under MacOS and Linux.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] Chart - Gadget
Could you check why vertical axis values are duplicated?
I am using Example 1 (automatically adjust maximum value), but it happens exactly the same with other examples and using the attribute 'Chart::#Maximum'
Thank you!
I am using Example 1 (automatically adjust maximum value), but it happens exactly the same with other examples and using the attribute 'Chart::#Maximum'
Thank you!
PB 6.0x, PureVision User.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] Chart - Gadget
Update: Line Chart
@zikitrake
Bug fixed
@zikitrake
Bug fixed
Last edited by Thorsten1867 on Fri Dec 20, 2019 3:17 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] Chart - Gadget
I love you!!Thorsten1867 wrote:Update: Line Chart
Very much!Thorsten1867 wrote: @zikitrake
Bug fixed
PB 6.0x, PureVision User.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] Chart - Gadget
@zikitrake
Line charts become really interesting if they are combined with data series.
Update: Line chart for data series
Line charts become really interesting if they are combined with data series.
Update: Line chart for data series
Last edited by Thorsten1867 on Fri Dec 20, 2019 3:18 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] Chart - Gadget
Nice!Thorsten1867 wrote:@zikitrake
Line charts become really interesting if they are combined with data series.
...
This is really interesting for me, as I plan to add graphics of this style to my project:
Would it be possible to:
- Add an option to hide the labels of the series? (I would put them manually in a List Gadget)
- Invert vertical values from top to bottom? as this image
Really thank you!
PB 6.0x, PureVision User.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] Chart - Gadget
Update:
- Added: #Hide for hiding legend
- Addes: #Descending for descending numbering of the y-axis in line charts
- Bugfixes
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] Chart - Gadget
Yeah, it works like a charm!Thorsten1867 wrote:Update:
- Added: #Hide for hiding legend
- Addes: #Descending for descending numbering of the y-axis in line charts
- Bugfixes
Sorry to be so heavy asking for additions but, hey! you're creating a first class module
Again, thank you so much!
Edit:An issue when #Descendig is activated: Chart::SetAttribute(#Chart, Chart::#Minimum, 1) is ignored
PB 6.0x, PureVision User.
Re: [Module] Chart - Gadget
More about previous comented issue
This image is made when #descending is activated and define a Chart::SetAttribute(#Chart, Chart::#Minimum, 1)
I did a change in Procedure DrawLineChart_(), changing to
And to
Then it seem to works fine
PS: I'm sure my code is a botched job.
This image is made when #descending is activated and define a Chart::SetAttribute(#Chart, Chart::#Minimum, 1)
I did a change in Procedure DrawLineChart_(), changing
Code: Select all
Range = Maximum - Minimum
Code: Select all
If Chart()\Line\Flags & #Descending
Range = Maximum
Else
Range = Maximum - Minimum
EndIf
Code: Select all
Text$ = Str(Factor * n)
Code: Select all
Text$ = Str(Factor * n + Minimum)
PS: I'm sure my code is a botched job.
PB 6.0x, PureVision User.
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Module] Chart - Gadget
@ zikitrake
Bug fixed and another little bonus.
Update: Bezier curves for line charts (#BezierCurve)
Bug fixed and another little bonus.
Update: Bezier curves for line charts (#BezierCurve)
Last edited by Thorsten1867 on Fri Dec 20, 2019 3:20 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Module] Chart - Gadget
Nice!!!Thorsten1867 wrote:@ zikitrake
Bug fixed and another little bonus.
Update: Bezier curves for line charts (#BezierCurve)
PB 6.0x, PureVision User.
Re: [Module] Chart - Gadget
Turning with the petitions!
- Do you plan to add Tooltips to items? I modified your code (awkwardly) to add a MouseMove event, but it doesn't go very fine
- (I don't know whether to consider this a request because I don't know if it will be of general interest ) : Could you make a value be hidden when it exceeds the Chart::#Minimum/Chart::#Maximum?
For example, in this graph I have assigned minimum value = 1 and maximum value = 100. When a value exceeds 100 I would like it to be hidden (or show a label 'out' for example )
PS: Tomorrow I'm going on a week' holiday, so I'll stop grilling you!
- Do you plan to add Tooltips to items? I modified your code (awkwardly) to add a MouseMove event, but it doesn't go very fine
- (I don't know whether to consider this a request because I don't know if it will be of general interest ) : Could you make a value be hidden when it exceeds the Chart::#Minimum/Chart::#Maximum?
For example, in this graph I have assigned minimum value = 1 and maximum value = 100. When a value exceeds 100 I would like it to be hidden (or show a label 'out' for example )
PS: Tomorrow I'm going on a week' holiday, so I'll stop grilling you!
PB 6.0x, PureVision User.