﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
  <Culture>en-GB</Culture>
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <BusinessObjects isList="true" count="0" />
    <Databases isList="true" count="1">
      <CSV Ref="2" type="Stimulsoft.Report.Dictionary.StiCsvDatabase" isKey="true">
        <Alias>CSV</Alias>
        <Key />
        <Name>CSV</Name>
        <PathData>d:\download</PathData>
        <Separator>,</Separator>
      </CSV>
    </Databases>
    <DataSources isList="true" count="1">
      <ExampleData Ref="3" type="DataTableSource" isKey="true">
        <Alias>ExampleData</Alias>
        <Columns isList="true" count="3">
          <value>Day,System.String</value>
          <value>RoomName,System.String</value>
          <value>Temp,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>ExampleData</Name>
        <NameInSource>CSV.ExampleData</NameInSource>
      </ExampleData>
    </DataSources>
    <Relations isList="true" count="0" />
    <Report isRef="0" />
    <Resources isList="true" count="0" />
    <Variables isList="true" count="0" />
  </Dictionary>
  <EngineVersion>EngineV2</EngineVersion>
  <GlobalizationStrings isList="true" count="0" />
  <MetaTags isList="true" count="0" />
  <Pages isList="true" count="1">
    <Page1 Ref="4" type="Page" isKey="true">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="2">
        <Chart1 Ref="5" type="Stimulsoft.Report.Chart.StiChart" isKey="true">
          <Area Ref="6" type="Stimulsoft.Report.Chart.StiClusteredColumnArea" isKey="true">
            <BorderColor>171, 172, 173</BorderColor>
            <Brush>White</Brush>
            <Chart isRef="5" />
            <GridLinesHor Ref="7" type="Stimulsoft.Report.Chart.StiGridLinesHor" isKey="true">
              <Area isRef="6" />
              <Color>100, 105, 105, 105</Color>
              <MinorColor>100, 105, 105, 105</MinorColor>
            </GridLinesHor>
            <GridLinesHorRight Ref="8" type="Stimulsoft.Report.Chart.StiGridLinesHor" isKey="true">
              <Area isRef="6" />
              <Color>Silver</Color>
              <MinorColor>Gainsboro</MinorColor>
              <Visible>False</Visible>
            </GridLinesHorRight>
            <GridLinesVert Ref="9" type="Stimulsoft.Report.Chart.StiGridLinesVert" isKey="true">
              <Area isRef="6" />
              <Color>100, 105, 105, 105</Color>
              <MinorColor>100, 105, 105, 105</MinorColor>
            </GridLinesVert>
            <InterlacingHor Ref="10" type="Stimulsoft.Report.Chart.StiInterlacingHor" isKey="true">
              <Area isRef="6" />
              <InterlacedBrush>[10:155:155:155]</InterlacedBrush>
            </InterlacingHor>
            <InterlacingVert Ref="11" type="Stimulsoft.Report.Chart.StiInterlacingVert" isKey="true">
              <Area isRef="6" />
              <InterlacedBrush>[10:155:155:155]</InterlacedBrush>
            </InterlacingVert>
            <XAxis Ref="12" type="Stimulsoft.Report.Chart.StiXBottomAxis" isKey="true">
              <Area isRef="6" />
              <DateTimeStep Ref="13" type="Stimulsoft.Report.Chart.StiAxisDateTimeStep" isKey="true" />
              <Interaction Ref="14" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="15" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Range Ref="16" type="Stimulsoft.Report.Chart.StiAxisRange" isKey="true" />
              <Ticks Ref="17" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="18" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </XAxis>
            <XTopAxis Ref="19" type="Stimulsoft.Report.Chart.StiXTopAxis" isKey="true">
              <Area isRef="6" />
              <Interaction Ref="20" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="21" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Ticks Ref="22" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="23" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </XTopAxis>
            <YAxis Ref="24" type="Stimulsoft.Report.Chart.StiYLeftAxis" isKey="true">
              <Area isRef="6" />
              <Interaction Ref="25" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="26" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Range Ref="27" type="Stimulsoft.Report.Chart.StiAxisRange" isKey="true">
                <Maximum>75</Maximum>
              </Range>
              <Ticks Ref="28" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="29" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Direction>BottomToTop</Direction>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </YAxis>
            <YRightAxis Ref="30" type="Stimulsoft.Report.Chart.StiYRightAxis" isKey="true">
              <Area isRef="6" />
              <Interaction Ref="31" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="32" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
                <TextAlignment>Left</TextAlignment>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Range Ref="33" type="Stimulsoft.Report.Chart.StiAxisRange" isKey="true" />
              <Ticks Ref="34" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="35" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Direction>TopToBottom</Direction>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </YRightAxis>
          </Area>
          <Brush>[255:255:255]</Brush>
          <ClientRectangle>0,0,9,5</ClientRectangle>
          <Conditions isList="true" count="0" />
          <ConstantLines isList="true" count="1">
            <Item5 Ref="36" type="Stimulsoft.Report.Chart.StiConstantLines" isKey="true">
              <AxisValue>55</AxisValue>
              <Chart isRef="5" />
              <Font>Arial,7</Font>
              <LineColor>171, 172, 173</LineColor>
              <Text>Constant Line 1</Text>
            </Item5>
          </ConstantLines>
          <CustomStyleName />
          <DataRelationName isNull="true" />
          <DataSourceName>ExampleData</DataSourceName>
          <Filters isList="true" count="0" />
          <Legend Ref="37" type="Stimulsoft.Report.Chart.StiLegend" isKey="true">
            <BorderColor>225, 225, 225</BorderColor>
            <Brush>[255:255:255]</Brush>
            <Chart isRef="5" />
            <Font>Arial,8</Font>
            <LabelsColor>140, 140, 140</LabelsColor>
            <MarkerSize>10, 10</MarkerSize>
            <ShowShadow>False</ShowShadow>
            <TitleColor>105, 105, 105</TitleColor>
            <TitleFont>Arial,14,Bold</TitleFont>
            <Visible>False</Visible>
          </Legend>
          <Name>Chart1</Name>
          <Page isRef="4" />
          <Parent isRef="4" />
          <Series isList="true" count="1">
            <Item6 Ref="38" type="Stimulsoft.Report.Chart.StiLineSeries" isKey="true">
              <ArgumentDataColumn>ExampleData.Day</ArgumentDataColumn>
              <Chart isRef="5" />
              <Conditions isList="true" count="0" />
              <Filters isList="true" count="0" />
              <Lighting>False</Lighting>
              <LineColor>112, 173, 71</LineColor>
              <LineColorNegative>Firebrick</LineColorNegative>
              <LineMarker Ref="39" type="Stimulsoft.Report.Chart.StiLineMarker" isKey="true">
                <BorderColor>0, 23, 0</BorderColor>
                <Brush>[162:223:121]</Brush>
              </LineMarker>
              <Marker Ref="40" type="Stimulsoft.Report.Chart.StiMarker" isKey="true">
                <BorderColor>12, 73, 0</BorderColor>
                <Brush>[212:255:171]</Brush>
              </Marker>
              <SeriesLabels Ref="41" type="Stimulsoft.Report.Chart.StiOutsideEndAxisLabels" isKey="true">
                <BorderColor>Transparent</BorderColor>
                <Brush>Transparent</Brush>
                <Chart isRef="5" />
                <Font>Arial,10</Font>
                <LabelColor>51, 71, 91</LabelColor>
                <MarkerSize>8, 6</MarkerSize>
                <ValueTypeSeparator>-</ValueTypeSeparator>
                <Width>0</Width>
              </SeriesLabels>
              <ShowShadow>False</ShowShadow>
              <Title>Series 1</Title>
              <TopN Ref="42" type="Stimulsoft.Report.Chart.StiSeriesTopN" isKey="true" />
              <TrendLine Ref="43" type="Stimulsoft.Report.Chart.StiTrendLineNone" isKey="true">
                <LineColor>105, 105, 105</LineColor>
                <ShowShadow>False</ShowShadow>
              </TrendLine>
              <ValueDataColumn>ExampleData.Temp</ValueDataColumn>
            </Item6>
          </Series>
          <SeriesLabels Ref="44" type="Stimulsoft.Report.Chart.StiCenterAxisLabels" isKey="true">
            <BorderColor>Transparent</BorderColor>
            <Brush>Transparent</Brush>
            <Chart isRef="5" />
            <Font>Arial,10</Font>
            <LabelColor>51, 71, 91</LabelColor>
            <MarkerSize>8, 6</MarkerSize>
            <ValueTypeSeparator>-</ValueTypeSeparator>
            <Width>0</Width>
          </SeriesLabels>
          <SeriesLabelsConditions isList="true" count="0" />
          <Sort isList="true" count="0" />
          <Strips isList="true" count="0" />
          <Style Ref="45" type="Stimulsoft.Report.Chart.StiStyle25" isKey="true">
            <Conditions isList="true" count="0" />
            <Name />
          </Style>
          <Table Ref="46" type="Stimulsoft.Report.Chart.StiChartTable" isKey="true">
            <DataCells Ref="47" type="Stimulsoft.Report.Chart.StiChartTableDataCells" isKey="true">
              <Font>Arial,8</Font>
              <ShrinkFontToFit>False</ShrinkFontToFit>
              <TextColor>140, 140, 140</TextColor>
            </DataCells>
            <GridLineColor>225, 225, 225</GridLineColor>
            <Header Ref="48" type="Stimulsoft.Report.Chart.StiChartTableHeader" isKey="true">
              <Brush>White</Brush>
              <Font>Arial,8</Font>
              <TextColor>DarkGray</TextColor>
            </Header>
          </Table>
          <Title Ref="49" type="Stimulsoft.Report.Chart.StiChartTitle" isKey="true">
            <Brush>[140:140:140]</Brush>
            <Font>Tahoma,12,Bold</Font>
          </Title>
        </Chart1>
        <Chart2 Ref="50" type="Stimulsoft.Report.Chart.StiChart" isKey="true">
          <Area Ref="51" type="Stimulsoft.Report.Chart.StiClusteredColumnArea" isKey="true">
            <BorderColor>171, 172, 173</BorderColor>
            <Brush>White</Brush>
            <Chart isRef="50" />
            <GridLinesHor Ref="52" type="Stimulsoft.Report.Chart.StiGridLinesHor" isKey="true">
              <Area isRef="51" />
              <Color>100, 105, 105, 105</Color>
              <MinorColor>100, 105, 105, 105</MinorColor>
            </GridLinesHor>
            <GridLinesHorRight Ref="53" type="Stimulsoft.Report.Chart.StiGridLinesHor" isKey="true">
              <Area isRef="51" />
              <Color>Silver</Color>
              <MinorColor>Gainsboro</MinorColor>
              <Visible>False</Visible>
            </GridLinesHorRight>
            <GridLinesVert Ref="54" type="Stimulsoft.Report.Chart.StiGridLinesVert" isKey="true">
              <Area isRef="51" />
              <Color>100, 105, 105, 105</Color>
              <MinorColor>100, 105, 105, 105</MinorColor>
            </GridLinesVert>
            <InterlacingHor Ref="55" type="Stimulsoft.Report.Chart.StiInterlacingHor" isKey="true">
              <Area isRef="51" />
              <InterlacedBrush>[10:155:155:155]</InterlacedBrush>
            </InterlacingHor>
            <InterlacingVert Ref="56" type="Stimulsoft.Report.Chart.StiInterlacingVert" isKey="true">
              <Area isRef="51" />
              <InterlacedBrush>[10:155:155:155]</InterlacedBrush>
            </InterlacingVert>
            <XAxis Ref="57" type="Stimulsoft.Report.Chart.StiXBottomAxis" isKey="true">
              <Area isRef="51" />
              <DateTimeStep Ref="58" type="Stimulsoft.Report.Chart.StiAxisDateTimeStep" isKey="true" />
              <Interaction Ref="59" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="60" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Range Ref="61" type="Stimulsoft.Report.Chart.StiAxisRange" isKey="true" />
              <Ticks Ref="62" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="63" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </XAxis>
            <XTopAxis Ref="64" type="Stimulsoft.Report.Chart.StiXTopAxis" isKey="true">
              <Area isRef="51" />
              <Interaction Ref="65" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="66" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Ticks Ref="67" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="68" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </XTopAxis>
            <YAxis Ref="69" type="Stimulsoft.Report.Chart.StiYLeftAxis" isKey="true">
              <Area isRef="51" />
              <Interaction Ref="70" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="71" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Range Ref="72" type="Stimulsoft.Report.Chart.StiAxisRange" isKey="true">
                <Maximum>75</Maximum>
              </Range>
              <Ticks Ref="73" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="74" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Direction>BottomToTop</Direction>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </YAxis>
            <YRightAxis Ref="75" type="Stimulsoft.Report.Chart.StiYRightAxis" isKey="true">
              <Area isRef="51" />
              <Interaction Ref="76" type="Stimulsoft.Report.Chart.StiAxisInteraction" isKey="true" />
              <Labels Ref="77" type="Stimulsoft.Report.Chart.StiAxisLabels" isKey="true">
                <Color>140, 140, 140</Color>
                <Font>Tahoma,8</Font>
                <TextAlignment>Left</TextAlignment>
              </Labels>
              <LineColor>140, 140, 140</LineColor>
              <Range Ref="78" type="Stimulsoft.Report.Chart.StiAxisRange" isKey="true" />
              <Ticks Ref="79" type="Stimulsoft.Report.Chart.StiAxisTicks" isKey="true" />
              <Title Ref="80" type="Stimulsoft.Report.Chart.StiAxisTitle" isKey="true">
                <Color>140, 140, 140</Color>
                <Direction>TopToBottom</Direction>
                <Font>Tahoma,12,Bold</Font>
              </Title>
            </YRightAxis>
          </Area>
          <Brush>[255:255:255]</Brush>
          <ClientRectangle>10,0,9,5</ClientRectangle>
          <Conditions isList="true" count="0" />
          <ConstantLines isList="true" count="1">
            <Item8 Ref="81" type="Stimulsoft.Report.Chart.StiConstantLines" isKey="true">
              <AxisValue>55</AxisValue>
              <Chart isRef="50" />
              <Font>Arial,7</Font>
              <LineColor>171, 172, 173</LineColor>
              <Text>Constant Line 1</Text>
            </Item8>
          </ConstantLines>
          <CustomStyleName />
          <DataRelationName isNull="true" />
          <DataSourceName>ExampleData</DataSourceName>
          <Filters isList="true" count="0" />
          <Guid>e966268f4654452e9f103987ea558a68</Guid>
          <Legend Ref="82" type="Stimulsoft.Report.Chart.StiLegend" isKey="true">
            <BorderColor>225, 225, 225</BorderColor>
            <Brush>[255:255:255]</Brush>
            <Chart isRef="50" />
            <Font>Arial,8</Font>
            <LabelsColor>140, 140, 140</LabelsColor>
            <MarkerSize>10, 10</MarkerSize>
            <ShowShadow>False</ShowShadow>
            <TitleColor>105, 105, 105</TitleColor>
            <TitleFont>Arial,14,Bold</TitleFont>
            <Visible>False</Visible>
          </Legend>
          <Name>Chart2</Name>
          <Page isRef="4" />
          <Parent isRef="4" />
          <ProcessChartEvent>SetChartYAxisRange(sender as StiChart);</ProcessChartEvent>
          <Series isList="true" count="1">
            <Item9 Ref="83" type="Stimulsoft.Report.Chart.StiLineSeries" isKey="true">
              <ArgumentDataColumn>ExampleData.Day</ArgumentDataColumn>
              <Chart isRef="50" />
              <Conditions isList="true" count="0" />
              <Filters isList="true" count="0" />
              <Lighting>False</Lighting>
              <LineColor>112, 173, 71</LineColor>
              <LineColorNegative>Firebrick</LineColorNegative>
              <LineMarker Ref="84" type="Stimulsoft.Report.Chart.StiLineMarker" isKey="true">
                <BorderColor>0, 23, 0</BorderColor>
                <Brush>[162:223:121]</Brush>
              </LineMarker>
              <Marker Ref="85" type="Stimulsoft.Report.Chart.StiMarker" isKey="true">
                <BorderColor>12, 73, 0</BorderColor>
                <Brush>[212:255:171]</Brush>
              </Marker>
              <SeriesLabels Ref="86" type="Stimulsoft.Report.Chart.StiOutsideEndAxisLabels" isKey="true">
                <BorderColor>Transparent</BorderColor>
                <Brush>Transparent</Brush>
                <Chart isRef="50" />
                <Font>Arial,10</Font>
                <LabelColor>51, 71, 91</LabelColor>
                <MarkerSize>8, 6</MarkerSize>
                <ValueTypeSeparator>-</ValueTypeSeparator>
                <Width>0</Width>
              </SeriesLabels>
              <ShowShadow>False</ShowShadow>
              <Title>Series 1</Title>
              <TopN Ref="87" type="Stimulsoft.Report.Chart.StiSeriesTopN" isKey="true" />
              <TrendLine Ref="88" type="Stimulsoft.Report.Chart.StiTrendLineNone" isKey="true">
                <LineColor>105, 105, 105</LineColor>
                <ShowShadow>False</ShowShadow>
              </TrendLine>
              <ValueDataColumn>ExampleData.Temp</ValueDataColumn>
            </Item9>
          </Series>
          <SeriesLabels Ref="89" type="Stimulsoft.Report.Chart.StiCenterAxisLabels" isKey="true">
            <BorderColor>Transparent</BorderColor>
            <Brush>Transparent</Brush>
            <Chart isRef="50" />
            <Font>Arial,10</Font>
            <LabelColor>51, 71, 91</LabelColor>
            <MarkerSize>8, 6</MarkerSize>
            <ValueTypeSeparator>-</ValueTypeSeparator>
            <Width>0</Width>
          </SeriesLabels>
          <SeriesLabelsConditions isList="true" count="0" />
          <Sort isList="true" count="0" />
          <Strips isList="true" count="0" />
          <Style Ref="90" type="Stimulsoft.Report.Chart.StiStyle25" isKey="true">
            <Conditions isList="true" count="0" />
            <Name />
          </Style>
          <Table Ref="91" type="Stimulsoft.Report.Chart.StiChartTable" isKey="true">
            <DataCells Ref="92" type="Stimulsoft.Report.Chart.StiChartTableDataCells" isKey="true">
              <Font>Arial,8</Font>
              <ShrinkFontToFit>False</ShrinkFontToFit>
              <TextColor>140, 140, 140</TextColor>
            </DataCells>
            <GridLineColor>225, 225, 225</GridLineColor>
            <Header Ref="93" type="Stimulsoft.Report.Chart.StiChartTableHeader" isKey="true">
              <Brush>White</Brush>
              <Font>Arial,8</Font>
              <TextColor>DarkGray</TextColor>
            </Header>
          </Table>
          <Title Ref="94" type="Stimulsoft.Report.Chart.StiChartTitle" isKey="true">
            <Brush>[140:140:140]</Brush>
            <Font>Tahoma,12,Bold</Font>
          </Title>
        </Chart2>
      </Components>
      <Conditions isList="true" count="0" />
      <Guid>e020590404a642239bdad7ed9ac41af3</Guid>
      <Margins>1,1,1,1</Margins>
      <Name>Page1</Name>
      <PageHeight>29.7</PageHeight>
      <PageWidth>21</PageWidth>
      <Report isRef="0" />
      <Watermark Ref="95" type="Stimulsoft.Report.Components.StiWatermark" isKey="true">
        <Font>Arial,100</Font>
        <TextBrush>[50:0:0:0]</TextBrush>
      </Watermark>
    </Page1>
  </Pages>
  <PrinterSettings Ref="96" type="Stimulsoft.Report.Print.StiPrinterSettings" isKey="true" />
  <ReferencedAssemblies isList="true" count="9">
    <value>System.Dll</value>
    <value>System.Drawing.Dll</value>
    <value>System.Windows.Forms.Dll</value>
    <value>System.Data.Dll</value>
    <value>System.Xml.Dll</value>
    <value>Stimulsoft.Controls.Dll</value>
    <value>Stimulsoft.Base.Dll</value>
    <value>Stimulsoft.Report.Dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Report</ReportAlias>
  <ReportChanged>10/30/2017 6:17:16 PM</ReportChanged>
  <ReportCreated>10/30/2017 2:59:58 PM</ReportCreated>
  <ReportFile>D:\Download\ExampleData.mrt</ReportFile>
  <ReportGuid>65c8dfaaec0f4bd3b610ce269808faf8</ReportGuid>
  <ReportImage isNull="true" />
  <ReportName>Report</ReportName>
  <ReportUnit>Centimeters</ReportUnit>
  <ReportVersion>2017.2.2.0</ReportVersion>
  <Script>using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
using Stimulsoft.Report.Chart;

namespace Reports
{
    public class Report : Stimulsoft.Report.StiReport
    {
        public Report()        {
            this.InitializeComponent();
        }

		public void SetChartYAxisRange(StiChart chart)
		{
			var chartArea = (StiAxisArea)chart.Area;
			
			StiLogService.Write(string.Format("Existing Range Min={0} Max={1}", chartArea.YAxis.Range.Minimum, chartArea.YAxis.Range.Maximum));

			bool hasAnyValues = false;
			double dMin = double.MaxValue;
			double dMax = double.MinValue;
			
			foreach(StiSeries series in chart.Series)
			{
				foreach(double value in series.Values)
				{
					hasAnyValues = true;
					
					IncludeInRange(value, ref dMin, ref dMax);
				}
			}

			foreach(IStiConstantLines constantLine in chart.ConstantLines)
			{
				StiLogService.Write(string.Format("Constant={0}", constantLine.AxisValue));

				hasAnyValues = true;
				IncludeInRange(System.Convert.ToDouble(constantLine.AxisValue), ref dMin, ref dMax);
			}
			
			if(hasAnyValues)
			{
				if(dMin &lt; dMax)
				{
					double range = dMax - dMin;
					double margin = range / 10.0;
					
					dMax += margin;
					dMin -= margin;
				}
			}
			else
			{ 
				dMin = 0;
				dMax = 100.0;
			}
			
			chartArea.YAxis.Range.Minimum = dMin;
			chartArea.YAxis.Range.Maximum = dMax;
			chartArea.YAxis.Range.Auto = false;

			StiLogService.Write(string.Format("Range Min={0} Max={1}", dMin, dMax));
		}
		
		private void IncludeInRange(double value, ref double dMin, ref double dMax)
		{
			dMin = Math.Min(value, dMin); 
			dMax = Math.Max(value, dMax); 
		}
		
		
        #region StiReport Designer generated code - do not modify
		#endregion StiReport Designer generated code - do not modify
    }
}
</Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="0" />
</StiSerializer>