Hi,
My project is having .Net framework 6.0 and i am using Infragistics.Win.UltraWinChart.UltraChart() version : 17.2.20172.2006.Iam getting below error
BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information.
Previously i am having .net4.8 framework then this was working but now i upgraded my project to .net frameowrk 6.0 and it started throwing error
Please let me know what will be the solution for this.
Hello Jyoti,
As I tried to explain earlier ,these are two different controls ,you can not easily migrate UltraChart to UltraDatachart by just changing the function and APIs.
You would have to comment the ultraChart control from the project and include UltraDataChart dlls /packages and then based on your requirement like which series needs to be added ,what would be the axis you would have to write the code for that .
I would recommend you to go through the provided sample link and doc link to get the better understanding of this new controls and migrate the project.
Like referring your provided code, earlier legend might be the part of the control but now its all together different control so in order to have legend for your control you would have to add legend control ,here are your option ,(may be use item legend):
https://www.infragistics.com/help/winforms/datachart-legends
Refer to this doc to understand which series needs to be added :
https://www.infragistics.com/help/winforms/datachart-series-types
Refer to this doc to understand how to add axis and format it, through these links you can get all the information related to axis like range, tickmark ,title, interval and so on:
https://www.infragistics.com/help/winforms/datachart-axes
https://www.infragistics.com/help/winforms/datachart-axis-label-format
Refer this doc to understand how to set chart title/subtitle and change is style:
https://www.infragistics.com/help/winforms/datachart-chart-title-and-subtitle
Again so there is no direct one on one mapping between the control APIs so you have to go through the docs and refer samples to understand that.
Infragistics.UltraChart.Resources.Appearance.CompositeLegend Infragistics.UltraChart.Resources.Appearance.PaintElement Infragistics.UltraChart.Resources.Appearance.ChartLayerAppearance Infragistics.UltraChart.Resources.Appearance.GradientEffect Infragistics.UltraChart.Resources.Appearance.ChartLayerAppearance Infragistics.UltraChart.Resources.Appearance.NumericSeries Infragistics.UltraChart.Resources.Appearance.CompositeChartAppearance Infragistics.UltraChart.Resources.Appearance.NumericDataPoint Infragistics.UltraChart.Resources.Appearance.XYSeries Infragistics.UltraChart.Resources.Appearance.XYDataPoint Infragistics.UltraChart.Resources.Appearance.ScatterChartAppearance Infragistics.UltraChart.Resources.Appearance.AxisLabelAppearance Infragistics.UltraChart.Resources.Appearance.AxisItem Infragistics.UltraChart.Resources.Appearance.ChartArea Infragistics.UltraChart.Resources.Appearance.LegendAppearance Infragistics.UltraChart.Shared.Styles.ChartType Infragistics.UltraChart.Shared.Styles.PaintElementType Infragistics.UltraChart.Shared.Styles.GradientStyle Infragistics.UltraChart.Shared.Styles.SymbolIcon Infragistics.UltraChart.Shared.Styles.SymbolIconSize Infragistics.UltraChart.Shared.Styles.AxisNumber Infragistics.UltraChart.Shared.Styles.AxisDataType Infragistics.UltraChart.Shared.Styles.NumericAxisType Infragistics.UltraChart.Shared.Styles.AxisRangeType Infragistics.UltraChart.Shared.Styles.AxisTickStyle Infragistics.UltraChart.Shared.Styles.TextOrientation Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors Infragistics.UltraChart.Shared.Styles.LegendLocation Infragistics.UltraChart.Shared.Styles.PieLabelFormat Infragistics.UltraChart.Data.Series.ISeries Infragistics.UltraChart.Core.Layers.SetLabelAxisType.GroupBySeries Infragistics.UltraChart.Shared.Events.ChartDataInvalidEventArgs ultraChart1.TitleLeft ultraChart1.ResetTitleBottom() ultraChart1.ColorModel ultraChart1.ResetColorModel() ultraChart1.Tooltips ultraChart1.BorderStyle ultraChart1.PieChart.Labels.Format ultraChart1.Data
Hi Divya,
Please refer attached file that we have used in UltraChart so same i want to use in UltraDataChart.
Can you please tell me if you can easily find out which functions/APIS we can use for the same in the file itself.
It is somehow difficult for me to find out because of the changes in properties/function names etc..
Thanks in advance
Thanks Divya. I will check and let you know soon.
You can not add ultrachart namespace using UltradataChart. Using UltraDataChart versus the UltraChart, they are quite different. However, I would recommend that you review our online documentation about the UltraDataChart here, as this may help you to understand it a bit further.
You can find examples of the UltraDataChart here:
UltraDataChart Samples
For the appearance I would like to know which chart series you are using and what exactly you are trying to style.
Also refer to this post discussing about chart migration.
https://www.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/124699/chart-issues-migrating-to-net6/545923
Thanks Divya.
Sorry for late post as we hold this activity due to some other priority work but now i am looking into it.
When i added UltraDataChart from the package it looks like so many changes we need to do as we have used below namespaces also in UltraWinChart.
Infragistics.UltraChart.Shared.Styles;Infragistics.UltraChart.Resources.Appearance;
How we handle those in UltraDataChart?
Do you have any better option how we can go further into it.
Thanks in advance.