[Module] Chart - Gadget

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

Not yet.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: [Module] Chart - Gadget

Post by Lord »

Thorsten1867 wrote:Not yet.
Ok.

Thanks anyway for this helpfull gadget.
Image
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: [Module] Chart - Gadget

Post by Lord »

Hi Thorsten!

Is it possible to avoid this small residue bar for a zero value?

Image
Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

Lord wrote:Is it possible to avoid this small residue bar for a zero value?
It's possible. 8)

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

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: [Module] Chart - Gadget

Post by Lord »

Hi Thorsten,

thank you for this quick response. :D
Image
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: [Module] Chart - Gadget

Post by Lord »

Hi Thorsten!

It's me again.

I don't see any improvement.
There is still a small bar for a zero value.
Do I have to use a new constant for not viewing zero values? Where?

Image
Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

Sorry, I forgot GitHub. Download link should be up-to-date.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: [Module] Chart - Gadget

Post by Caronte3D »

Hi!
The tooltip appear in wrong place on the linechart mode:

Image

Also...
The showValues flag put negative values over the center line:
Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

Caronte3D wrote:Hi!
The tooltip appear in wrong place on the linechart mode:
I use GadgetTooltip() and cannot change the position of the tooltips.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

Update: Bugfix: Labels for negative values
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: [Module] Chart - Gadget

Post by Caronte3D »

Thanks for this update :wink:

about the tooltip, take a look:
https://ibb.co/sqRkBmm
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

Caronte3D wrote:about the tooltip, take a look: https://ibb.co/sqRkBmm
Unfortunately I cannot reproduce the problem.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: [Module] Chart - Gadget

Post by Caronte3D »

Try this:

Code: Select all

XIncludeFile "ChartModule.pbi"

  nrX=OpenWindow(#PB_Any, 100, 100, 800, 300, "Test", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered)

  Define  chartBalLabel$="Serie2"

  
  Define   Graf=Chart::Gadget(#PB_Any, 10, 10, 780, 280, Chart::#LineChart|Chart::#DataSeries|Chart::#ShowLines|Chart::#Border|Chart::#ChangeCursor|Chart::#ToolTips|Chart::#AutoResize, nrX)
  Chart::SetFlags(Graf, Chart::#Legend, Chart::#Hide)
  Chart::SetAttribute(Graf, Chart::#Maximum, 11400)
  Chart::SetAttribute(Graf, Chart::#Minimum, 11400)
  Chart::SetAttribute(Graf, Chart::#FontSize, 7)

  If Chart::AddDataSeries(Graf, chartBalLabel$, $FF901E)
    Define suma=11400,f
    For f=0 To 59
      suma+(Random(2,0)-1)
      Chart::AddSeriesItem(Graf, chartBalLabel$, Str(f), suma)
    Next
  Chart::DisplayDataSeries(Graf, chartBalLabel$)    
  EndIf 
  
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] Chart - Gadget

Post by Thorsten1867 »

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

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: [Module] Chart - Gadget

Post by Caronte3D »

Solved the tooltip bug!
Thank You very much :wink:
Post Reply