<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Sample demo for rtChartJS Library</AppTitle>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>640</PageWidth>
	<PageHeight>480</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<ArchiveTarget>bak</ArchiveTarget>
	<LanguageCode>en</LanguageCode>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<Components>
		<FunctionList name="Subroutines"/>
		<LibraryList name="Libraries">
			<Components>
				<LibraryItem>
					<FileName>C:\Projects\JS Libraries\Chart.js\Chart.min.js</FileName>
				</LibraryItem>
			</Components>
		</LibraryList>
		<PageList name="Main">
			<Components>
				<Page id="PieChart">
					<style>background-color:#383838</style>
					<pageenter>. if border is left blank &quot;&quot; then no border will be shown,else if set to 0, a small think border is shown actually
SetVar [ChartBorderWidth] &quot;&quot;
SetVar [ChartShowLegend] &quot;true&quot;</pageenter>
					<Components>
						<Container id="Container1">
							<left>231px</left>
							<top>63px</top>
							<width>400px</width>
							<height>375px</height>
							<style>background-color:#FFFFFF;border-style:solid;border-width:1px</style>
						</Container>
						<Paragraph id="Paragraph1">
							<left>13px</left>
							<top>6px</top>
							<width>147px</width>
							<height>26px</height>
							<text>CHART.JS DEMO</text>
						</Paragraph>
						<PushButton id="PushButton10">
							<left>14px</left>
							<top>407px</top>
							<width>204px</width>
							<height>30px</height>
							<caption>DRAW Pie Chart</caption>
							<kind>warning</kind>
							<click>. Here&apos;s what we need to setup for create the Pie Chart
SetVar [ChartID] &quot;Chart1&quot;
SetVar [ChartData] &quot;100,200,250,300,600,450,368&quot;
SetVar [ChartLabel] &quot;Apple,Orange,Pear,Strawberry,Grapes,Blueberry,Pineapple&quot;
.Colours can be assigned using color names (like red) or #FF0000. See below for example
SetVar [ChartColors] &quot;red,orange,#9AFE2E,#FF1493,purple,#00008B,yellow&quot;
SetVar [ChartHeaderText] &quot;PERCENTAGE OF FRUITS SOLD IN FY2019 (in millions)&quot;
. Assign the Container to enable the chart to be displayed
SetObjectHTML &quot;Container1&quot; &quot;&lt;canvas id=&apos;[ChartID]&apos; height=270&gt;&lt;/canvas&gt;&quot;
.Function to create a pie chart
rtChartJS_CreatePieChart &quot;[ChartID]&quot; &quot;[ChartLabel]&quot; &quot;[ChartData]&quot; &quot;[ChartColors]&quot; [ChartBorderWidth] &quot;[ChartShowLegend]&quot; &quot;[ChartLegendPosition]&quot; &quot;[ChartHeaderText]&quot;</click>
						</PushButton>
						<Headline id="Headline1">
							<left>0px</left>
							<top>3px</top>
							<width>640px</width>
							<height>50px</height>
							<style>color:#FFFFFF;text-align:center;background-color:#0D7BFF;padding-top:4px</style>
							<text>rtChartJS Library</text>
						</Headline>
						<Paragraph id="Paragraph2">
							<left>6px</left>
							<top>104px</top>
							<width>219px</width>
							<height>72px</height>
							<style>color:#FFEEEA;font-size:10pt</style>
							<text>Add common charts to your VisualNeo Web projects with this &lt;b&gt;rtChartJS Library&lt;/b&gt;.</text>
						</Paragraph>
						<Container id="Container3">
							<left>0px</left>
							<top>180px</top>
							<width>232px</width>
							<height>210px</height>
							<style>background-color:rgba(112,112,112,0.46)</style>
							<Components>
								<Paragraph id="Paragraph3">
									<left>5px</left>
									<top>55px</top>
									<width>57px</width>
									<height>42px</height>
									<style>color:#FFFFFF;font-size:8pt</style>
									<text>LEGEND POSITION</text>
								</Paragraph>
								<PushButton id="PushButton2">
									<left>60px</left>
									<top>65px</top>
									<width>50px</width>
									<height>30px</height>
									<style>font-size:8pt;padding-left:3px;padding-right:3px</style>
									<caption>LEFT</caption>
									<click>SetVar [ChartLegendPosition] &quot;left&quot;
If [ChartShowLegend] == &quot;false&quot;
   SetVar [ChartShowLegend] &quot;true&quot;
EndIf</click>
								</PushButton>
								<PushButton id="PushButton3">
									<left>111px</left>
									<top>65px</top>
									<width>50px</width>
									<height>30px</height>
									<style>font-size:8pt;padding-left:3px;padding-right:3px</style>
									<caption>RIGHT</caption>
									<click>SetVar [ChartLegendPosition] &quot;right&quot;
If [ChartShowLegend] == &quot;false&quot;
   SetVar [ChartShowLegend] &quot;true&quot;
EndIf</click>
								</PushButton>
								<PushButton id="PushButton4">
									<left>162px</left>
									<top>42px</top>
									<width>60px</width>
									<height>30px</height>
									<style>font-size:8pt;padding-left:3px;padding-right:3px</style>
									<caption>TOP</caption>
									<click>SetVar [ChartLegendPosition] &quot;top&quot;
If [ChartShowLegend] == &quot;false&quot;
   SetVar [ChartShowLegend] &quot;true&quot;
EndIf</click>
								</PushButton>
								<PushButton id="PushButton5">
									<left>162px</left>
									<top>73px</top>
									<width>60px</width>
									<height>30px</height>
									<style>font-size:8pt;padding-left:3px;padding-right:3px</style>
									<caption>BOTTOM</caption>
									<click>SetVar [ChartLegendPosition] &quot;bottom&quot;
If [ChartShowLegend] == &quot;false&quot;
   SetVar [ChartShowLegend] &quot;true&quot;
EndIf</click>
								</PushButton>
								<Paragraph id="Paragraph4">
									<left>6px</left>
									<top>4px</top>
									<width>219px</width>
									<height>23px</height>
									<style>color:#FFC2AF;font-size:8pt</style>
									<text>Select an option and then click on the &apos;DRAW Pie Chart&apos; to display the chart</text>
								</Paragraph>
								<PushButton id="PushButton6">
									<left>93px</left>
									<top>111px</top>
									<width>50px</width>
									<height>30px</height>
									<style>font-size:8pt;padding-left:3px;padding-right:3px</style>
									<caption>YES</caption>
									<kind>success</kind>
									<click>SetVar [ChartShowLegend] &quot;true&quot;
If [ChartLegendPosition] == 0
   SetVar [ChartLegendPosition] [PrevPos]
EndIf</click>
								</PushButton>
								<Paragraph id="Paragraph5">
									<left>5px</left>
									<top>115px</top>
									<width>83px</width>
									<height>20px</height>
									<style>color:#FFFFFF;font-size:8pt</style>
									<text>SHOW LEGEND</text>
								</Paragraph>
								<PushButton id="PushButton7">
									<left>144px</left>
									<top>111px</top>
									<width>50px</width>
									<height>30px</height>
									<style>font-size:8pt;padding-left:3px;padding-right:3px</style>
									<caption>NO</caption>
									<kind>danger</kind>
									<click>SetVar [ChartShowLegend] &quot;false&quot;
.need to reset position to null
SetVar [PrevPos] [ChartLegendPosition]
SetVar [ChartLegendPosition] &quot;&quot;</click>
								</PushButton>
								<Paragraph id="Paragraph6">
									<left>5px</left>
									<top>165px</top>
									<width>97px</width>
									<height>20px</height>
									<style>color:#FFFFFF;font-size:8pt</style>
									<text>BORDER WIDTH</text>
								</Paragraph>
								<Combobox id="Combobox1">
									<left>119px</left>
									<top>160px</top>
									<width>55px</width>
									<height>31px</height>
									<items>0,1,2,3,4,5,</items>
									<variable>[ChartBorderWidth]</variable>
									<init_value>0</init_value>
									<multi_select>False</multi_select>
								</Combobox>
							</Components>
						</Container>
						<Paragraph id="Paragraph7">
							<left>7px</left>
							<top>64px</top>
							<width>219px</width>
							<height>40px</height>
							<style>color:#CFFFFF;font-size:18pt</style>
							<text>PIE CHART</text>
						</Paragraph>
						<PushButton id="PushButton16">
							<left>549px</left>
							<top>442px</top>
							<width>81px</width>
							<height>30px</height>
							<caption>NEXT</caption>
							<click>GotoNextPage</click>
						</PushButton>
					</Components>
				</Page>
				<Page id="BarChart">
					<style>background-color:#383838</style>
					<pageenter>. if border is left blank &quot;&quot; then no border will be shown,else if set to 0, a small think border is shown actually
SetVar [ChartBorderWidth] &quot;&quot;
SetVar [ChartShowLegend] &quot;true&quot;</pageenter>
					<Components>
						<Container id="Container2">
							<left>231px</left>
							<top>63px</top>
							<width>400px</width>
							<height>375px</height>
							<style>background-color:#FFFFFF;border-style:solid;border-width:1px</style>
						</Container>
						<Paragraph id="Paragraph8">
							<left>13px</left>
							<top>6px</top>
							<width>147px</width>
							<height>26px</height>
							<text>CHART.JS DEMO</text>
						</Paragraph>
						<PushButton id="PushButton1">
							<left>14px</left>
							<top>407px</top>
							<width>204px</width>
							<height>30px</height>
							<caption>DRAW Bar Chart</caption>
							<kind>warning</kind>
							<click>. Here&apos;s what we need to setup for create the Pie Chart
SetVar [ChartID] &quot;Chart1&quot;
SetVar [ChartData] &quot;100,200,250,300,600,450,368&quot;
SetVar [ChartLabel] &quot;Apple,Orange,Pear,Strawberry,Grapes,Blueberry,Pineapple&quot;
.Colours can be assigned using color names (like red) or #FF0000. See below for example
SetVar [ChartColors] &quot;red,orange,#9AFE2E,#FF1493,purple,#00008B,yellow&quot;
SetVar [ChartHeaderText] &quot;PERCENTAGE OF FRUITS SOLD IN FY2019 (in millions)&quot;
. Assign the Container to enable the chart to be displayed
SetObjectHTML &quot;Container2&quot; &quot;&lt;canvas id=&apos;[ChartID]&apos; height=270&gt;&lt;/canvas&gt;&quot;
.Function to create a pie chart
rtChartJS_CreateBarChart &quot;[ChartID]&quot; &quot;[ChartLabel]&quot; &quot;[ChartData]&quot; &quot;[ChartColors]&quot; &quot;[ChartBorderWidth]&quot; &quot;[ChartHeaderText]&quot;</click>
						</PushButton>
						<Headline id="Headline2">
							<left>0px</left>
							<top>3px</top>
							<width>640px</width>
							<height>50px</height>
							<style>color:#FFFFFF;text-align:center;background-color:#0D7BFF;padding-top:4px</style>
							<text>rtChartJS Library</text>
						</Headline>
						<Paragraph id="Paragraph9">
							<left>6px</left>
							<top>104px</top>
							<width>219px</width>
							<height>72px</height>
							<style>color:#FFEEEA;font-size:10pt</style>
							<text>Add common charts to your VisualNeo Web projects with this &lt;b&gt;rtChartJS Library&lt;/b&gt;.</text>
						</Paragraph>
						<Container id="Container4">
							<left>0px</left>
							<top>180px</top>
							<width>232px</width>
							<height>210px</height>
							<style>background-color:rgba(112,112,112,0.46)</style>
							<Components>
								<Paragraph id="Paragraph11">
									<left>6px</left>
									<top>4px</top>
									<width>219px</width>
									<height>23px</height>
									<style>color:#FFC2AF;font-size:8pt</style>
									<text>Select an option and then click on the &apos;DRAW Pie Chart&apos; to display the chart</text>
								</Paragraph>
								<Paragraph id="Paragraph13">
									<left>5px</left>
									<top>165px</top>
									<width>97px</width>
									<height>20px</height>
									<style>color:#FFFFFF;font-size:8pt</style>
									<text>BORDER WIDTH</text>
								</Paragraph>
								<Combobox id="Combobox2">
									<left>119px</left>
									<top>160px</top>
									<width>55px</width>
									<height>31px</height>
									<items>0,1,2,3,4,5,</items>
									<variable>[ChartBorderWidth]</variable>
									<init_value>0</init_value>
									<multi_select>False</multi_select>
								</Combobox>
							</Components>
						</Container>
						<Paragraph id="Paragraph14">
							<left>7px</left>
							<top>64px</top>
							<width>219px</width>
							<height>40px</height>
							<style>color:#CFFFFF;font-size:18pt</style>
							<text>BAR CHART</text>
						</Paragraph>
						<PushButton id="PushButton15">
							<left>549px</left>
							<top>442px</top>
							<width>81px</width>
							<height>30px</height>
							<caption>NEXT</caption>
							<click>GotoNextPage</click>
						</PushButton>
						<PushButton id="PushButton8">
							<left>460px</left>
							<top>442px</top>
							<width>81px</width>
							<height>30px</height>
							<caption>PREV</caption>
							<click>GotoPrevPage</click>
						</PushButton>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>667px</width>
							<height>375px</height>
							<close_button>False</close_button>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
