T O P I C R E V I E W |
rdc1997 |
Posted - 06 Jan 2015 : 16:39:00 Good day, I am in the process of evaluating SPC Control Chart Tools for .Net and have been stumped in an area. I wish to obtain an image of the chart shown on screen and have utilized the headless rendering approach described on page 396 of the Chart 2d manual. Everything has worked fine with respect to obtaining an image.
I've used the headless rendering approach so that I can control the size of the resulting image irrespective of the chart size shown on the screen.
What is stumping me is that if the control chart has more subgroups than fit on the screen, how can I control what is displayed on the generated image?
When a chart is on the screen the horz scroll bar can be used to programmaticly set the display. This doesn't seem to work with headless rendering (I assume because the control is not assigned to a form).
Thank you in advance for your assistance. |
2 L A T E S T R E P L I E S (Newest First) |
rdc1997 |
Posted - 09 Jan 2015 : 04:39:59 Thank you for your response. |
quinncurtis |
Posted - 07 Jan 2015 : 09:33:53 Easy to do. Enable the scrollbar as if the chart was to be displayed in a form. Then, after you have updated the chart with all of the data you plan to use, set the scrollbar Value property, for the staring index (the sample subgroup index) you want as the start of the data table, and plotted points, in the chart.
chartVu.EnableScrollBar = true;
SimulateData(chartVu); // Calculate the SPC control limits for both graphs of the current SPC chart (X-Bar R) chartVu.AutoCalculateControlLimits(); // Scale the y-axis of the X-Bar chart to display all data and control limits chartVu.AutoScalePrimaryChartYRange(); // Scale the y-axis of the Range chart to display all data and control limits chartVu.AutoScaleSecondaryChartYRange(); // Rebuild the chart using the current data and settings chartVu.RebuildChartUsingCurrentData();
chartVu.HScrollBar1.Value = 40;
You can also get rid of the table, and display much more, or all, of chart data, in a single view, rather than just a window. See the example TimeVariableControlCharts.XBarRNoTable |
|
|