Your help is appreciated

Code: Select all
Chart::SetAttribute(#Chart, Chart::#Decimals, 2)
Code: Select all
XIncludeFile "ChartModule.pbi"
Enumeration
#Window
#Chart
EndEnumeration
If OpenWindow(#Window, #PB_Ignore, #PB_Ignore, 400, 200, "Chart decimal test", #PB_Window_ScreenCentered)
Chart::Gadget(#Chart, 10, 10, 295, 180, Chart::#ScatterPlot|Chart::#Border|Chart::#ToolTips|Chart::#AutoResize|Chart::#ShowLines, #Window)
Chart::SetAttribute(#Chart, Chart::#MaximumY, 50)
Chart::SetAttribute(#Chart, Chart::#MinimumY, 40)
Chart::SetAttribute(#Chart, Chart::#MinimumX, Date(2019, 1, 1, 8, 0, 0))
Chart::SetAttribute(#Chart, Chart::#MaximumX, Date(2019, 1, 1, 13, 0, 0))
Chart::AddAxisLabel(#Chart, "8:00", Date(2019, 1, 1, 8, 0, 0))
Chart::AddAxisLabel(#Chart, "9:00", Date(2019, 1, 1, 9, 0, 0))
Chart::AddAxisLabel(#Chart, "10:00", Date(2019, 1, 1, 10, 0, 0))
Chart::AddAxisLabel(#Chart, "11:00", Date(2019, 1, 1, 11, 0, 0))
Chart::AddAxisLabel(#Chart, "12:00", Date(2019, 1, 1, 12, 0, 0))
Chart::AddAxisLabel(#Chart, "13:00", Date(2019, 1, 1, 13, 0, 0))
Chart::SetFlags(#Chart, Chart::#AxisX, Chart::#Time|Chart::#Labels)
Chart::SetAttribute(#Chart, Chart::#Decimals, 2)
Chart::ToolTipText(#Chart, Chart::#Scatter$ + ": " + Chart::#Value$)
If Chart::AddScatterPlot(#Chart, "Scatter 1", $FF901E)
Chart::AddScatterItem(#Chart, "Scatter 1", "08:30", Date(2019, 1, 1, 8, 30, 0), 45.33)
Chart::AddScatterItem(#Chart, "Scatter 1", "10:30", Date(2019, 1, 1, 10, 30, 0), 46.55)
Chart::AddScatterItem(#Chart, "Scatter 1", "11::30", Date(2019, 1, 1, 11, 30, 0), 46.27)
Chart::AddScatterItem(#Chart, "Scatter 1", "12::30", Date(2019, 1, 1, 12, 30, 0), 46.77)
EndIf
Chart::DisplayScatterPlot(#Chart, "Scatter 1", #True)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
Chart::SetAttribute(#Chart, Chart::#MaximumY, 48.5)
Code: Select all
XIncludeFile "ChartModule.pbi"
Enumeration
#Window
#Chart
EndEnumeration
If OpenWindow(#Window, #PB_Ignore, #PB_Ignore, 400, 200, "Chart decimal test", #PB_Window_ScreenCentered)
Chart::Gadget(#Chart, 10, 10, 295, 180, Chart::#ScatterPlot|Chart::#Border|Chart::#ToolTips|Chart::#AutoResize|Chart::#ShowLines, #Window)
Chart::SetAttribute(#Chart, Chart::#MaximumY, 47)
Chart::SetAttribute(#Chart, Chart::#MinimumY, 45)
Chart::SetAttribute(#Chart, Chart::#MinimumX, Date(2019, 1, 1, 8, 0, 0))
Chart::SetAttribute(#Chart, Chart::#MaximumX, Date(2019, 1, 1, 13, 0, 0))
Chart::AddAxisLabel(#Chart, "8:00", Date(2019, 1, 1, 8, 0, 0))
Chart::AddAxisLabel(#Chart, "9:00", Date(2019, 1, 1, 9, 0, 0))
Chart::AddAxisLabel(#Chart, "10:00", Date(2019, 1, 1, 10, 0, 0))
Chart::AddAxisLabel(#Chart, "11:00", Date(2019, 1, 1, 11, 0, 0))
Chart::AddAxisLabel(#Chart, "12:00", Date(2019, 1, 1, 12, 0, 0))
Chart::AddAxisLabel(#Chart, "13:00", Date(2019, 1, 1, 13, 0, 0))
Chart::SetFlags(#Chart, Chart::#AxisX, Chart::#Time|Chart::#Labels)
Chart::SetAttribute(#Chart, Chart::#Decimals, 2)
Chart::ToolTipText(#Chart, Chart::#Scatter$ + ": " + Chart::#Value$)
If Chart::AddScatterPlot(#Chart, "Scatter 1", $FF901E)
Chart::AddScatterItem(#Chart, "Scatter 1", "08:30", Date(2019, 1, 1, 8, 30, 0), 45.33)
Chart::AddScatterItem(#Chart, "Scatter 1", "10:30", Date(2019, 1, 1, 10, 30, 0), 46.55)
Chart::AddScatterItem(#Chart, "Scatter 1", "11::30", Date(2019, 1, 1, 11, 30, 0), 46.27)
Chart::AddScatterItem(#Chart, "Scatter 1", "12::30", Date(2019, 1, 1, 12, 30, 0), 46.77)
EndIf
Chart::DisplayScatterPlot(#Chart, "Scatter 1", #True)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
Chart::ToolTipText(#Gadget_Chart, Chart::#Scatter$ + ": " + Chart::#Time$ + " - " + Chart::#DataY$ + " pounds")
Code: Select all
Chart::ToolTipText(#Gadget_Chart, Chart::#Scatter$ + ": " + Chart::#Time$ + " - " + Chart::#Value$ + " pounds")
Code: Select all
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::#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$ + " pounds")
Code: Select all
XIncludeFile "ChartModule.pbi"
Enumeration
#Window
#Chart
EndEnumeration
If OpenWindow(#Window, #PB_Ignore, #PB_Ignore, 400, 200, "Chart decimal test", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
Chart::Gadget(#Chart, 10, 10, 380, 180, Chart::#ScatterPlot|Chart::#Border|Chart::#ToolTips|Chart::#AutoResize|Chart::#ShowLines, #Window)
Chart::SetAttribute(#Chart, Chart::#MaximumY, 47)
Chart::SetAttribute(#Chart, Chart::#MinimumY, 45)
Chart::SetAttribute(#Chart, Chart::#MinimumX, Date(2019, 1, 1, 8, 0, 0))
Chart::SetAttribute(#Chart, Chart::#MaximumX, Date(2019, 1, 1, 13, 0, 0))
Chart::AddAxisLabel(#Chart, "8:00", Date(2019, 1, 1, 8, 0, 0))
Chart::AddAxisLabel(#Chart, "9:00", Date(2019, 1, 1, 9, 0, 0))
Chart::AddAxisLabel(#Chart, "10:00", Date(2019, 1, 1, 10, 0, 0))
Chart::AddAxisLabel(#Chart, "11:00", Date(2019, 1, 1, 11, 0, 0))
Chart::AddAxisLabel(#Chart, "12:00", Date(2019, 1, 1, 12, 0, 0))
Chart::AddAxisLabel(#Chart, "13:00", Date(2019, 1, 1, 13, 0, 0))
Chart::SetFlags(#Chart, Chart::#AxisX, Chart::#Time|Chart::#Labels)
Chart::SetAttribute(#Chart, Chart::#Decimals, 2)
Chart::ToolTipText(#Chart, Chart::#Scatter$ + ": " + Chart::#Time$ + " - " + Chart::#Value$ + " pounds")
If Chart::AddScatterPlot(#Chart, "Scatter 1", $FF901E)
Chart::AddScatterItem(#Chart, "Scatter 1", "08:30", Date(2019, 1, 1, 8, 30, 0), 45.33)
Chart::AddScatterItem(#Chart, "Scatter 1", "10:30", Date(2019, 1, 1, 10, 30, 0), 46.55)
Chart::AddScatterItem(#Chart, "Scatter 1", "11::30", Date(2019, 1, 1, 11, 30, 0), 46.27)
Chart::AddScatterItem(#Chart, "Scatter 1", "12::30", Date(2019, 1, 1, 12, 30, 0), 46.77)
EndIf
Chart::DisplayScatterPlot(#Chart, "Scatter 1", #True)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf