using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet sheet = workbook.Worksheets[0];
//Initialize XlsIORenderer
XlsIORenderer renderer = new XlsIORenderer();
Stream image = new FileStream("Sample.png", FileMode.Create, FileAccess.ReadWrite);
//Converts the Range(R1C1 to R10C20) in worksheet to image
renderer.ConvertToImage(sheet, 1, 1, 10, 20, image);
}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet sheet = workbook.Worksheets[0];
//Initialize XlsIORenderer
XlsIORenderer renderer = new XlsIORenderer();
Stream image = new FileStream("Sample.png", FileMode.Create, FileAccess.ReadWrite);
//Converts the Range used in worksheet to image
renderer.ConvertToImage(sheet.UsedRange, image);
}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet sheet = workbook.Worksheets[0];
//Initialize XlsIORenderer
XlsIORenderer renderer = new XlsIORenderer();
Stream image = new FileStream("Sample.png", FileMode.Create, FileAccess.ReadWrite);
//Converts the Range used in worksheet to image
ExportImageOptions imageOptions = new ExportImageOptions();
imageOptions.ImageFormat = ExportImageFormat.Jpeg;
renderer.ConvertToImage(sheet.UsedRange, imageOptions, image);
}
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet sheet = workbook.Worksheets[0];
//Initialize XlsIORenderer
XlsIORenderer renderer = new XlsIORenderer();
Stream image = new FileStream("Sample.png", FileMode.Create, FileAccess.ReadWrite);
//Converts the Range(R1C1 to R10C20) in worksheet to image
ExportImageOptions imageOptions = new ExportImageOptions();
imageOptions.ImageFormat = ExportImageFormat.Jpeg;
renderer.ConvertToImage(sheet, 1, 1, 10, 20, imageOptions, image);
}
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
// Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Convert the workbook into PDF.
PdfDocument document = renderer.ConvertToPDF(workbook);
//Saving the PDF as stream
FileStream stream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
workbook.Close();
excelEngine.Dispose();
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
// Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Creates an instance of XlsIORenderer settings.
XlsIORendererSettings settings = new XlsIORendererSettings();
//Set layout for the output Pdf page.
settings.LayoutOptions = LayoutOptions.FitAllColumnsOnOnePage;
//Convert the workbook into PDF.
PdfDocument document = renderer.ConvertToPDF(workbook, settings);
//Saving the PDF as stream
FileStream stream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
workbook.Close();
excelEngine.Dispose();
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];
//Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Convert the worksheet into PDF.
PdfDocument document = renderer.ConvertToPDF(worksheet);
//Saving the PDF as stream
FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
workbook.Close();
excelEngine.Dispose();
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];
//Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Creates an instance of XlsIORenderer settings.
XlsIORendererSettings settings = new XlsIORendererSettings();
//Set layout for the output Pdf page.
settings.LayoutOptions = LayoutOptions.FitAllColumnsOnOnePage;
//Convert the worksheet into PDF.
PdfDocument document = renderer.ConvertToPDF(worksheet, settings);
//Saving the PDF as stream
FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
workbook.Close();
excelEngine.Dispose();
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
// Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Convert the workbook into PDF.
PdfDocument document = renderer.ConvertToPDF(excelStream);
//Saving the PDF as stream
FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
//Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Creates an instance of XlsIORenderer settings.
XlsIORendererSettings settings = new XlsIORendererSettings();
//Set layout for the output Pdf page.
settings.LayoutOptions = LayoutOptions.FitAllColumnsOnOnePage;
//Convert the Excel stream into PDF.
PdfDocument document = renderer.ConvertToPDF(excelStream, settings);
//Saving the PDF as stream
FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet sheet = workbook.Worksheets[0];
IChart chart = sheet.Charts[0];
//Initialize XlsIORenderer
XlsIORenderer renderer = new XlsIORenderer();
renderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
//Converts the chart to image
Stream image = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
renderer.ConvertToImage(chart, image);
}
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
//Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Set image options to be used on chart to image conversion
renderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
//Convert the chart into PDF.
PdfDocument document = renderer.ConvertToPDF(chart);
//Saving the PDF as stream
FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
workbook.Close();
excelEngine.Dispose();
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
IWorksheet worksheet = workbook.Worksheets[0];
IChart chart = worksheet.Charts[0];
//Creates an instance of XlsIORenderer for Excel to PDF conversion
XlsIORenderer renderer = new XlsIORenderer();
//Creates an instance of XlsIORenderer settings.
XlsIORendererSettings settings = new XlsIORendererSettings();
//Set image options to be used on chart to image conversion
renderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
//Set layout for the output Pdf page.
settings.LayoutOptions = LayoutOptions.NoScaling;
//Convert the chart into PDF.
PdfDocument document = renderer.ConvertToPDF(chart, settings);
//Saving the PDF as stream
FileStream pdfStream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
renderer.Dispose();
workbook.Close();
excelEngine.Dispose();
using Syncfusion.XlsIO;
using Syncfusion.Pdf;
using Syncfusion.ExcelToPdfConverter;
class Example
{
static void Main()
{
using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
PdfDocument doc = converter.Convert();
doc.Save("Output.pdf");
}
}
}
using Syncfusion.XlsIO;
using Syncfusion.ExcelToPdfConverter;
class Example
{
static void Main()
{
using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
ExcelToPdfConverterSettings converterSettings = new ExcelToPdfConverterSettings();
converterSettings.LayoutOptions = LayoutOptions.FitAllColumnsOnOnePage;
PdfDocument doc = converter.Convert(converterSettings);
doc.Save("Output.pdf");
}
}
}
using Syncfusion.XlsIO;
using System.Text;
using Syncfusion.Pdf;
using Syncfusion.ExcelToPdfConverter;
class Example
using(ExcelEngine engine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Open("Fund_Calendar_KF-US_2018.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
ExcelToPdfConverterSettings setting = new ExcelToPdfConverterSettings();
setting.ShowFileNameWithExtension = true;
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
PdfDocument doc = converter.Convert(setting);
doc.Save("Output.pdf");
}
using Syncfusion.XlsIO;
using System.Text;
using Syncfusion.Pdf;
using Syncfusion.ExcelToPdfConverter;
class Example
{
static void Main()
{
using(ExcelEngine engine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Open("Fund_Calendar_KF-US_2018.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
ExcelToPdfConverterSettings setting = new ExcelToPdfConverterSettings();
setting.AutoDetectComplexScript = true;
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
PdfDocument doc = converter.Convert(setting);
doc.Save("Output.pdf");
}
}
}
using Syncfusion.XlsIO;
using Syncfusion.ExcelToPdfConverter;
class Example
{
static void Main()
{
using(ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
ExcelToPdfConverterSettings converterSettings = new ExcelToPdfConverterSettings();
converterSettings.LayoutOptions = LayoutOptions.FitAllColumnsOnOnePage;
PdfDocument doc = converter.Convert(converterSettings);
doc.Save("Output.pdf");
}
}
}
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
//Open the file as Stream
FileStream excelStream = new FileStream("Template.xlsx", FileMode.Open, FileAccess.Read);
IWorkbook workbook = application.Workbooks.Open(excelStream);
ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();
//Setting custom paper size to the document
settings.CustomPaperSize = new SizeF(10, 20);
//Convert the workbook into PDF.
PdfDocument document = converter.Convert(settings);
//Saving the PDF as stream
FileStream stream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
document.Save(pdfStream);
pdfStream.Dispose();
excelStream.Dispose();
document.Close();
workbook.Close();
excelEngine.Dispose();
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workbook = application.Workbooks.Open(DEFAULTPATH + "sample.xlsx");
//Open the Excel document to Convert
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();
// Set the conformance for PDF/A-1b conversion.
settings.PdfConformanceLevel = PdfConformanceLevel.Pdf_A1B;
//Initialize PDF document
PdfDocument pdfDocument = converter.Convert(settings);
//Save the PDF file
pdfDocument.Save("Output.pdf");
pdfDocument.Close();
series.ConfigItems.RadarItem.Type = ChartRadarDrawType.Symbol;
// access the RadarItem ConfigItem to configure radar charts
series.ConfigItems.RadarItem.Type = ChartRadarDrawType.Symbol;
This color list will be used to specify the
The first entry in this list will be the same as the
Note that this list is Read-only.
The following code demonstrate how to get the average of the data points in a series.
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Mean1=BasicStatisticalFormulas.Mean(series1);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Mean1 As Double
Mean1=BasicStatisticalFormulas.Mean(series1)
Use this method to calculate the mean (i.e. average) of the points stored in a series.
If the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.
The following code demonstrate how to get the average of the data points in a series.
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Mean1=BasicStatisticalFormulas.Mean(series1, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Mean1 As Double
Mean1=BasicStatisticalFormulas.Mean(series1, 0)
Use this method to calculate the mean (i.e. average) of the points stored in a series.
If the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the VarianceUnBasedEstimator of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double VarianceUnBased1= Statistics.BasicStatisticalFormulas.VarianceUnBiasedEstimator(series);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim VarianceUnBased1 As Double
VarianceUnBased1=BasicStatisticalFormulas.VarianceUnBiasedEstimator(series)
This method estimates the variance for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the VarianceUnBasedEstimator of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double VarianceUnBased1= Statistics.BasicStatisticalFormulas.VarianceUnBiasedEstimator(series, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim VarianceUnBased1 As Double
VarianceUnBased1=BasicStatisticalFormulas.VarianceUnBiasedEstimator(series, 0)
This method estimates the variance for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the VarianceBasedEstimator of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double VarianceBased1= Statistics.BasicStatisticalFormulas.VarianceBiasedEstimator(series);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim VarianceBased1 As Double
VarianceBased1=BasicStatisticalFormulas.VarianceBiasedEstimator(series)
This method estimates the variance for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the VarianceBasedEstimator of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double VarianceBased1= Statistics.BasicStatisticalFormulas.VarianceBiasedEstimator(series, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim VarianceBased1 As Double
VarianceBased1=BasicStatisticalFormulas.VarianceBiasedEstimator(series, 0)
This method estimates the variance for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the Variance of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Variance1= Statistics.BasicStatisticalFormulas.Variance(series,true);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Variance1 As Double
Variance1=BasicStatisticalFormulas.Variance(series,true)
This method estimates the variance for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the Variance of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Variance1= Statistics.BasicStatisticalFormulas.Variance(series,true);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Variance1 As Double
Variance1=BasicStatisticalFormulas.Variance(series,true)
This method estimates the variance for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the Standard Deviation of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Standard1= Statistics.BasicStatisticalFormulas.StandartDeviation(series,false);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Standard1 As Double
Standard1=BasicStatisticalFormulas.StandartDeviation(series,false)
This method estimates the Standard Deviation for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the Standard Deviation of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Standard1= Statistics.BasicStatisticalFormulas.StandardDeviation(series,0,false);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Standard1 As Double
Standard1=BasicStatisticalFormulas.StandardDeviation(series,0,false)
This method estimates the Standard Deviation for a sample.
If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the Covariance of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Covariance1= Statistics.BasicStatisticalFormulas.Covariance(series1,series2);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Covariance1 As Double
Covariance1=BasicStatisticalFormulas.Covariance(series1,series2)
This method returns the average of the product of deviations of the data points from their respective means.
Covariance is a measure of the relationship between two ranges of data, and can be used to determine whether two ranges of data move together - that is, whether large values of one set are associated with large values of the other (positive covariance), whether small values of one set are associated with large values of the other (negative covariance), or whether values in both sets are unrelated (covariance near zero).
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.
The following Code demonstrate how to gets the Covariance of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Covariance1= Statistics.BasicStatisticalFormulas.Covariance(series1,series2, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Covariance1 As Double
Covariance1=BasicStatisticalFormulas.Covariance(series1,series2, 0)
This method returns the average of the product of deviations of the data points from their respective means.
Covariance is a measure of the relationship between two ranges of data, and can be used to determine whether two ranges of data move together - that is, whether large values of one set are associated with large values of the other (positive covariance), whether small values of one set are associated with large values of the other (negative covariance), or whether values in both sets are unrelated (covariance near zero).
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.
The following Code demonstrate how to gets the Correlation of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Correlation1= Statistics.BasicStatisticalFormulas.Correlation(series1,series2);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Correlation1 As Double
Correlation1=BasicStatisticalFormulas.Correlation(series1,series2)
Correlation measures the relationship between two data sets that are scaled to be independent of the unit of measurement. This correlation method returns the covariance of two data sets divided by the product of their standard deviations, and always ranges from -1 to 1. Use correlation to determine whether two ranges of data move together that is, whether large values of one set are associated with large values of the other (positive correlation), whether small values of one set are associated with large values of the other (negative correlation), or whether values in both sets are unrelated (correlation near zero).
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.
The following Code demonstrate how to gets the Correlation of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Correlation1= Statistics.BasicStatisticalFormulas.Correlation(series1,series2,0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Correlation1 As Double
Correlation1=BasicStatisticalFormulas.Correlation(series1,series2,0)
Correlation measures the relationship between two data sets that are scaled to be independent of the unit of measurement. This correlation method returns the covariance of two data sets divided by the product of their standard deviations, and always ranges from -1 to 1. Use correlation to determine whether two ranges of data move together that is, whether large values of one set are associated with large values of the other (positive correlation), whether small values of one set are associated with large values of the other (negative correlation), or whether values in both sets are unrelated (correlation near zero).
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.
The following Code demonstrate how to gets the median of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Median1= Statistics.BasicStatisticalFormulas.Median(series1);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Median1 As Double
Median1=BasicStatisticalFormulas.Median(series1)
Use this method to calculate the median of the points stored in a series. The median is the middle value of a sample set, where half of the members are greater in size and half the members are lesser in size.
if the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.
The following Code demonstrate how to gets the median of the data points in a series
using Syncfusion.Windows.Forms.Chart.Statistics;
............
double Median1= Statistics.BasicStatisticalFormulas.Median(series1, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
.............
Dim Median1 As Double
Median1=BasicStatisticalFormulas.Median(series1, 0)
Use this method to calculate the median of the points stored in a series. The median is the middle value of a sample set, where half of the members are greater in size and half the members are lesser in size.
if the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.
The following code demonstrate how to calculate Ztest
ZTestResult ztr = BasicStatisticalFormulas.ZTest( Convert.ToDouble(TextBox6.Text.ToString()),sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries,sqrtVarianceOfSecondSeries* sqrtVarianceOfSecondSeries,0.05,series1,series2);
Dim ztr As ZTestResult = BasicStatisticalFormulas.ZTest(Convert.ToDouble(TextBox6.Text.ToString()), sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries, sqrtVarianceOfSecondSeries*sqrtVarianceOfSecondSeries, 0.05, series1, series2)
This method performs a Z test for two groups of data, and returns the results using a ZTestResult object.
Two and only two groups of data must be specified. If either input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following code demonstrate how to calculate Ztest
ZTestResult ztr = BasicStatisticalFormulas.ZTest( Convert.ToDouble(TextBox6.Text.ToString()),sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries,sqrtVarianceOfSecondSeries* sqrtVarianceOfSecondSeries,0.05,series1,series2, 0);
Dim ztr As ZTestResult = BasicStatisticalFormulas.ZTest(Convert.ToDouble(TextBox6.Text.ToString()), sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries, sqrtVarianceOfSecondSeries*sqrtVarianceOfSecondSeries, 0.05, series1, series2, 0)
This method performs a Z test for two groups of data, and returns the results using a ZTestResult object.
Two and only two groups of data must be specified. If either input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following code demonstrate how to calculate TTest Equal Variance
using Syncfusion.Windows.Forms.Chart.Statistics;
........
TTestResult ttr = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ttr As TTestResult = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2)
This method performs a T test for two groups of data, and assumes equal variances between the two groups (i.e. series).
If either input series does not exist in the series collection at the time of the method call an exception will be thrown.
The following code demonstrate how to calculate TTest Equal Variance
using Syncfusion.Windows.Forms.Chart.Statistics;
........
TTestResult ttr = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ttr As TTestResult = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2, 0)
This method performs a T test for two groups of data, and assumes equal variances between the two groups (i.e. series).
If either input series does not exist in the series collection at the time of the method call an exception will be thrown.
The following code demonstrate how to calculate TTest UnEqual Variance
using Syncfusion.Windows.Forms.Chart.Statistics;
........
TTestResult ttr = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ttr As TTestResult = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2)
This method performs a T test for two groups of data, and assumes unequal variances between the two groups (i.e. series).
This analysis tool is referred to as a heteroscedastic t-test, and can be used when the groups under study are distinct. Use a paired test when there is one group before and after a treatment.
If either input series does not exist in the series collection at the time of the method call an exception will be thrown.
The following code demonstrate how to calculate TTest UnEqual Variance
using Syncfusion.Windows.Forms.Chart.Statistics;
........
TTestResult ttr = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ttr As TTestResult = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2, 0)
This method performs a T test for two groups of data, and assumes unequal variances between the two groups (i.e. series).
This analysis tool is referred to as a heteroscedastic t-test, and can be used when the groups under study are distinct. Use a paired test when there is one group before and after a treatment.
If either input series does not exist in the series collection at the time of the method call an exception will be thrown.
The following code demonstrate how to calculate TTestPaired
using Syncfusion.Windows.Forms.Chart.Statistics;
........
TTestResult ttr = BasicStatisticalFormulas.TTestPaired(0.2, 0.05, series1, series2);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ttr As TTestResult = BasicStatisticalFormulas.TTestPaired (0.2, 0.05, series1, series2)
This method performs a paired two-sample student's t-test to determine whether a sample's means are distinct. This form of the t-test does not assume that the variances of both populations are equal.
Use a paired test when there is a natural pairing of observations in the samples, such as a sample group that is tested twice (e.g. before and after an experiment).
If either input series does not exist in the series collection at the time of the method call an exception will be thrown.
The following code demonstrate how to calculate TTestPaired
using Syncfusion.Windows.Forms.Chart.Statistics;
........
TTestResult ttr = BasicStatisticalFormulas.TTestPaired(0.2, 0.05, series1, series2, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ttr As TTestResult = BasicStatisticalFormulas.TTestPaired (0.2, 0.05, series1, series2, 0)
This method performs a paired two-sample student's t-test to determine whether a sample's means are distinct. This form of the t-test does not assume that the variances of both populations are equal.
Use a paired test when there is a natural pairing of observations in the samples, such as a sample group that is tested twice (e.g. before and after an experiment).
If either input series does not exist in the series collection at the time of the method call an exception will be thrown.
The following code demonstrate how to calculate FTest.
using Syncfusion.Windows.Forms.Chart.Statistics;
........
FTestResult ftr = BasicStatisticalFormulas.FTest(0.05, series1, series2);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ftr As FTestResult = BasicStatisticalFormulas.FTest(0.05, series1, series2)
This method returns the results of the F-test using an FTestResult object.
FTest performs a two-sample F-test to compare two population variances. For example, it can be used to determine whether the time scores in a swimming meet have a difference in variance for samples from two teams.
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following code demonstrate how to calculate FTest.
using Syncfusion.Windows.Forms.Chart.Statistics;
........
FTestResult ftr = BasicStatisticalFormulas.FTest(0.05, series1, series2, 0);
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ftr As FTestResult = BasicStatisticalFormulas.FTest(0.05, series1, series2, 0)
This method returns the results of the F-test using an FTestResult object.
FTest performs a two-sample F-test to compare two population variances. For example, it can be used to determine whether the time scores in a swimming meet have a difference in variance for samples from two teams.
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following code demonstrate how to calculate AnovaTest
using Syncfusion.Windows.Forms.Chart.Statistics;
........
AnovaResult ar = BasicStatisticalFormulas.Anova(0.5,new ChartSeries[]{ series1, series2, series3} );
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ar As AnovaResult = BasicStatisticalFormulas.Anova(0.5, New ChartSeries(){ series1, series2, series3})
An ANOVA test is used to test the difference between the means of two or more groups of data.
Two or more groups of data (series) must be specified, and each series must have the same number of data points otherwise an exception will be raised.
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
The following code demonstrate how to calculate AnovaTest
using Syncfusion.Windows.Forms.Chart.Statistics;
........
AnovaResult ar = BasicStatisticalFormulas.Anova(0.5,new ChartSeries[]{ series1, series2, series3}, 0 );
Imports Syncfusion.Windows.Forms.Chart.Statistics
........
Dim ar As AnovaResult = BasicStatisticalFormulas.Anova(0.5, New ChartSeries(){ series1, series2, series3}, 0)
An ANOVA test is used to test the difference between the means of two or more groups of data.
Two or more groups of data (series) must be specified, and each series must have the same number of data points otherwise an exception will be raised.
If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.
this.chart.Series[0].Styles[0].Font.Facename = "Arial";
standard.Font.Facename = "Helvetica";
model[1, 3].Font.Bold = true;
string faceName = model[1, 3].Font.Facename; // any cell inherits standard style
Console.WriteLIne(faceName); // will output "Helvetica"
Console.WriteLIne(model[1, 3].Font.Bold); // will output "true"
Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False"
public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
{
return new GridStyleInfoSubObjectIdentity(this, sip);
}
XmlSerializer imageHolderSerializer = new XmlSerializer(typeof(object), new Type[] { typeof(ImageHolder) });
GridStyleInfoStore.RegisterXmlSerializer(typeof(ImageHolder), imageHolderSerializer);
standard.Font.Facename = "Helvetica";
model[1, 3].Font.Bold = true;
string faceName = model[1, 3].Font.Facename; // any cell inherits standard style
Console.WriteLIne(faceName); // will output "Helvetica"
Console.WriteLIne(model[1, 3].Font.Bold); // will output "true"
Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False"