Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Javascript/Typescript
 QCSPCChart for Javascript/Typescript
 Line attributes (color, style, fill, symbol)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic   

quinncurtis

1586 Posts

Posted - 26 Oct 2020 :  10:52:25  Show Profile  Reply with Quote
I’ve been experimenting with the pure JS/TS chart while referring to the manual given and I have some problems that I have encountered.

1. How do I resize the symbol bullet in the chart?

2. How to adjust the line and colour of LineMarkerPlot?

3. How to define specific colours for each zones?

quinncurtis

1586 Posts

Posted - 26 Oct 2020 :  10:53:36  Show Profile  Reply with Quote
Here is an example of how to set all of the items you list, plus disabling the grids.

if (primarychart)
{
primarychart.ProcessVariableData.LineMarkerPlot.SymbolAttributes.SymbolSize = 3;
primarychart.ProcessVariableData.LineMarkerPlot.SymbolAttributes.PrimaryColor = QCSPCChartTS.ChartColor.ORANGE;
primarychart.ProcessVariableData.LineMarkerPlot.SymbolAttributes.FillColor = QCSPCChartTS.ChartColor.YELLOW;
primarychart.ProcessVariableData.LineMarkerPlot.LineAttributes.PrimaryColor = QCSPCChartTS.ChartColor.PURPLE;
primarychart.ProcessVariableData.LineMarkerPlot.LineAttributes.LineWidth = 5;
primarychart.ProcessVariableData.LineMarkerPlot.LineAttributes.LineStyle = QCSPCChartTS.ChartConstants.LS_DASH_4_2;
primarychart.XGrid.ChartObjEnable = QCSPCChartTS.ChartConstants.OBJECT_DISABLE;
primarychart.YGrid.ChartObjEnable = QCSPCChartTS.ChartConstants.OBJECT_DISABLE;

primarychart.setZoneColors([QCSPCChartTS.ChartColor.AQUAMARINE, QCSPCChartTS.ChartColor.ORANGE, QCSPCChartTS.ChartColor.YELLOW] );



primarychart.add3SigmaControlLimits(30,25,35, false);
primarychart.ControlLimitLineFillMode = true;


}
Go to Top of Page
  Previous Topic Topic   
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07