Forum Home › Forums › Understanding the Software › New Chart Pro settings, second YAxis
- This topic has 8 replies, 2 voices, and was last updated 2 years, 8 months ago by Artos9.
-
AuthorPosts
-
August 12, 2021 at 11:53 am #9401Artos9Participant
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.
August 12, 2021 at 2:47 pm #9403MikhailModeratorHi,
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.
August 13, 2021 at 12:32 pm #9408Artos9ParticipantHi,
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.
August 13, 2021 at 2:10 pm #9410MikhailModeratorThe both of the YAxis have the same QuantityIDs, so trends will be bound to the same axis.
August 15, 2021 at 8:37 pm #9411Artos9ParticipantHi,
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>August 16, 2021 at 11:06 am #9413MikhailModeratorHi,
Please provide screenshots of the chart and the input channel properties.August 20, 2021 at 12:52 pm #9415Artos9ParticipantHi,
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/ypJkbM9August 23, 2021 at 12:57 pm #9418MikhailModeratorHi,
Quantity should be specified for the both channels.
It’s the ParamID field.August 25, 2021 at 9:13 pm #9436Artos9ParticipantHello,
Its working. Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.