New Chart Pro settings, second YAxis

Forum Home Forums Understanding the Software New Chart Pro settings, second YAxis

Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #9401
    Artos9
    Participant

    Hello,
    I would like to ask about how to add second Yaxis (on Right) and assign to this axis cnlNum.

    My new configuration:
    <Widget type=”Chart” cnlNums=”403,404″ viewIDs=”2,2″ period=”2″ mode=”fixed” title=”CH007″ config=”PlgChartPro_1.xml” />

    PlgChartPro_1.xml

    <?xml version=”1.0″ encoding=”utf-8″ ?>
    <PlgChartPro>
    <DisplayOptions>
    <!– The following options are retrieved from the global software parameters:
    <Locale>en-GB</Locale>
    <GapBetweenPoints>90</GapBetweenPoints>
    <AlignXToGrid>true</AlignXToGrid>
    –>
    <ChartArea>
    <!– Padding and margin is an array containing from 0 to 4 elements –>
    <ChartPadding>10, 20, 10, 10</ChartPadding>
    <FontName>Arial</FontName>
    <BackColor>#ffffff</BackColor>
    </ChartArea>
    <ChartTitle>
    <ShowTitle>true</ShowTitle>
    <ShowMenu>true</ShowMenu>
    <ShowStatus>true</ShowStatus>
    <Height>30</Height>
    <FontSize>17</FontSize>
    <ForeColor>#333333</ForeColor>
    </ChartTitle>
    <PlotArea>
    <FrameColor>#808080</FrameColor>
    <GridColor>#e0e0e0</GridColor>
    <BackColor>#ffffff</BackColor>
    <MarkerColor>#000000</MarkerColor>
    <SelectionColor>#6aaaea</SelectionColor>
    <LineWidth>1</LineWidth>
    <TrendColors>
    <!– Red –>
    <Color>#ff0000</Color>
    <!– Blue –>
    <Color>#0000ff</Color>
    <!– Green –>
    <Color>#008000</Color>
    <!– Fuchsia –>
    <Color>#ff00ff</Color>
    <!– Orange –>
    <Color>#ffa500</Color>
    <!– Aqua –>
    <Color>#00ffff</Color>
    <!– Lime –>
    <Color>#00ff00</Color>
    <!– Indigo –>
    <Color>#4b0082</Color>
    <!– DeepPink –>
    <Color>#ff1493</Color>
    <!– SaddleBrown –>
    <Color>#8b4513</Color>
    </TrendColors>
    </PlotArea>
    <XAxis>
    <Height>30</Height>
    <ShowGridLines>true</ShowGridLines>
    <ShowDates>true</ShowDates>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <ShowMinorTicks>true</ShowMinorTicks>
    <LabelMargin>2, 3, 0</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    </XAxis>
    <YAxes>
    <YAxis>
    <!– Position: Left, Right –>
    <Position>Left</Position>
    <AutoWidth>true</AutoWidth>
    <Width>0</Width>
    <ShowTitle>true</ShowTitle>
    <ShowGridLines>true</ShowGridLines>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <MinorTickCount>4</MinorTickCount>
    <LabelMargin>2, 3</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    <TrendColor></TrendColor>
    <!– IncludeZero: Off, On, WithoutZoom –>
    <IncludeZero>WithoutZoom</IncludeZero>
    <QuantityIDs></QuantityIDs>
    </YAxis>
    <YAxis>
    <!– Position: Left, Right –>
    <Position>Right</Position>
    <AutoWidth>true</AutoWidth>
    <Width>0</Width>
    <ShowTitle>true</ShowTitle>
    <ShowGridLines>true</ShowGridLines>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <MinorTickCount>4</MinorTickCount>
    <LabelMargin>2, 3</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    <TrendColor></TrendColor>
    <!– IncludeZero: Off, On, WithoutZoom –>
    <IncludeZero>WithoutZoom</IncludeZero>
    <QuantityIDs></QuantityIDs>
    </YAxis>
    </YAxes>
    <Legend>
    <!– Position: None, Right, Bottom–>
    <Position>Right</Position>
    <ColumnWidth>300</ColumnWidth>
    <ColumnMargin>10, 10, 0</ColumnMargin>
    <ColumnCount>1</ColumnCount>
    <LineHeight>18</LineHeight>
    <IconWidth>12</IconWidth>
    <IconHeight>12</IconHeight>
    <FontSize>12</FontSize>
    <ForeColor>#000000</ForeColor>
    </Legend>
    </DisplayOptions>
    <BehaviorOptions>
    <RefreshRate>60000</RefreshRate>
    </BehaviorOptions>
    </PlgChartPro>

    Thank you.

    • This topic was modified 2 years, 8 months ago by Mikhail.
    #9403
    Mikhail
    Moderator

    Hi,

    You should add a new YAxis block into YAxes. It’s important to specify QuantityIDs for the added YAxis, because channels are bound to the axis according their quantities.

    #9408
    Artos9
    Participant

    Hi,
    Thank you for answer.
    I added new block.
    <YAxes>
    <YAxis>
    <!– Position: Left, Right –>
    <Position>Left</Position>
    <AutoWidth>true</AutoWidth>
    <Width>0</Width>
    <ShowTitle>true</ShowTitle>
    <ShowGridLines>true</ShowGridLines>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <MinorTickCount>4</MinorTickCount>
    <LabelMargin>2, 3</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    <TrendColor></TrendColor>
    <!– IncludeZero: Off, On, WithoutZoom –>
    <IncludeZero>WithoutZoom</IncludeZero>
    <QuantityIDs>1</QuantityIDs>
    </YAxis>
    <YAxis>
    <!– Position: Left, Right –>
    <Position>Right</Position>
    <AutoWidth>true</AutoWidth>
    <Width>0</Width>
    <ShowTitle>true</ShowTitle>
    <ShowGridLines>true</ShowGridLines>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <MinorTickCount>4</MinorTickCount>
    <LabelMargin>2, 3</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    <TrendColor></TrendColor>
    <!– IncludeZero: Off, On, WithoutZoom –>
    <IncludeZero>WithoutZoom</IncludeZero>
    <QuantityIDs>1</QuantityIDs>
    </YAxis>
    </YAxes>

    I would like to assign one scope to left and right axes.

    Above proposal unfortunately not working.

    #9410
    Mikhail
    Moderator

    The both of the YAxis have the same QuantityIDs, so trends will be bound to the same axis.

    #9411
    Artos9
    Participant

    Hi,
    Changing QuantityIDs don’t change anything.

    <YAxes>
    <YAxis>
    <!– Position: Left, Right –>
    <Position>Left</Position>
    <AutoWidth>true</AutoWidth>
    <Width>0</Width>
    <ShowTitle>true</ShowTitle>
    <ShowGridLines>true</ShowGridLines>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <MinorTickCount>4</MinorTickCount>
    <LabelMargin>2, 3</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    <TrendColor></TrendColor>
    <!– IncludeZero: Off, On, WithoutZoom –>
    <IncludeZero>WithoutZoom</IncludeZero>
    <QuantityIDs>1</QuantityIDs>
    </YAxis>
    <YAxis>
    <!– Position: Left, Right –>
    <Position>Right</Position>
    <AutoWidth>true</AutoWidth>
    <Width>0</Width>
    <ShowTitle>true</ShowTitle>
    <ShowGridLines>true</ShowGridLines>
    <MajorTickSize>4</MajorTickSize>
    <MinorTickSize>2</MinorTickSize>
    <MinorTickCount>4</MinorTickCount>
    <LabelMargin>2, 3</LabelMargin>
    <FontSize>12</FontSize>
    <LineColor>#808080</LineColor>
    <TextColor>#000000</TextColor>
    <TrendColor></TrendColor>
    <!– IncludeZero: Off, On, WithoutZoom –>
    <IncludeZero>WithoutZoom</IncludeZero>
    <QuantityIDs>2</QuantityIDs>
    </YAxis>
    </YAxes>

    #9413
    Mikhail
    Moderator

    Hi,
    Please provide screenshots of the chart and the input channel properties.

    #9415
    Artos9
    Participant

    Hi,
    Input channel properties.
    <InCnl>
    <CnlNum>403</CnlNum>
    <Active>true</Active>
    <Name>CH001_frequency</Name>
    <CnlTypeID>2</CnlTypeID>
    <ObjNum>1</ObjNum>
    <KPNum>1</KPNum>
    <Signal>3</Signal>
    <FormulaUsed>false</FormulaUsed>
    <Averaging>false</Averaging>
    <ParamID xsi:nil=”true” />
    <FormatID>2</FormatID>
    <UnitID xsi:nil=”true” />
    <CtrlCnlNum xsi:nil=”true” />
    <EvEnabled>true</EvEnabled>
    <EvSound>false</EvSound>
    <EvOnChange>true</EvOnChange>
    <EvOnUndef>false</EvOnUndef>
    <LimLowCrash>10</LimLowCrash>
    <LimLow>5</LimLow>
    <LimHigh>20</LimHigh>
    <LimHighCrash>20</LimHighCrash>
    </InCnl>

    <InCnl>
    <CnlNum>405</CnlNum>
    <Active>true</Active>
    <Name>CH003_frequency</Name>
    <CnlTypeID>2</CnlTypeID>
    <ObjNum>1</ObjNum>
    <KPNum>1</KPNum>
    <Signal>5</Signal>
    <FormulaUsed>false</FormulaUsed>
    <Averaging>false</Averaging>
    <ParamID xsi:nil=”true” />
    <FormatID>2</FormatID>
    <UnitID xsi:nil=”true” />
    <CtrlCnlNum xsi:nil=”true” />
    <EvEnabled>true</EvEnabled>
    <EvSound>false</EvSound>
    <EvOnChange>true</EvOnChange>
    <EvOnUndef>false</EvOnUndef>
    <LimLowCrash>10</LimLowCrash>
    <LimLow>5</LimLow>
    <LimHigh>20</LimHigh>
    <LimHighCrash>20</LimHighCrash>
    </InCnl>

    Chart screenshot.
    https://imgur.com/ypJkbM9

    #9418
    Mikhail
    Moderator

    Hi,

    Quantity should be specified for the both channels.
    It’s the ParamID field.

    #9436
    Artos9
    Participant

    Hello,
    Its working. Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.