BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Neeraj,
Thanks for using syncfusion product. We have analyzed your requirement and we
have prepares a simple user customization sample based on your requirements,
Please find the attached sample.
Please refer the UG Document for
following location
http://help.syncfusion.com/web
And please select chart it will be
more helpful to create a chart and chart functionalities.
We have Customization sample in
online please find the following location
http://asp.syncfusion.com/demos/web/
Please let us know if it’s helpful.
Thanks,
Akbar Basha K M
Hello
Sample you have given is quite customized but I want to save customization I mean whenever I refresh the page chart again set as his default properties. Is there any option to save the changes and make chart as per our requirements.
Thanks.
Hi Neeraj,
Thanks for your update.
We would like to inform
you that, we do not have default data binding support to our gauge controls.
Hence, we have prepared a workaround sample to meet your requirement. In
the sample, we have created “.mdf” local database file and used; then read the
data in the code behind page and assigned to the gauge properties. Please find
the following code snippet, which is used in the code behind page.
SqlConnection myconnection = new SqlConnection("Data Source=(LocalDB)\\v11.0;AttachDbFilename=|DataDirectory|\\Sample.mdf;Integrated
Security=True");
myconnection.Open();
string cmd2 = "Select
PointerLength,Radius,Height,Width,PointerValue From Gauge";
SqlDataReader dRdr;
SqlCommand
cmd = new SqlCommand(cmd2,
myconnection);
dRdr = cmd.ExecuteReader();
if (dRdr.Read())
{
this.CircularGauge1.Radius
= Convert.ToDouble(dRdr.GetValue(1));
this.CircularGauge1.Height
= Convert.ToInt32(dRdr.GetValue(2));
this.CircularGauge1.Width
= Convert.ToInt32(dRdr.GetValue(3));
this.CircularGauge1.Scales[0].Pointers[0].Length
= Convert.ToDouble(dRdr.GetValue(1));
// Assign the pointerlength value to the
CircularGauge control
this.CircularGauge1.Scales[0].Pointers[0].Value
= Convert.ToDouble(dRdr.GetValue(4));
// Assign the pointer value to the
CircularGauge control
}
}
And we need to define
the gauge control in design page as mentioned below to take the effect of the
above code snippet.
<ej:CircularGauge ID="CircularGauge1" runat="server">
<Scales>
<ej:CircularScales>
<PointerCollection>
<ej:Pointers>
ej:Pointers>
PointerCollection>
ej:CircularScales>
Scales>
ej:CircularGauge>
We have also attached
the sample prepared with above code snippet, which can be downloaded from the
following location.
Please let us know
if it helps and any further assistance on this.
Regards,
Velmurugan
Hi Neeraj,
Thanks for your update. We have analyzed your requirement,
Query #1:Attached sample was not working
Response: we have analyzed your attached image, the
syncfusion.shared.web dll was not referred in your page that was the lack.
We have added shared.web in your previous attached sample.
The sample can be downloaded from the following link,
Sample Link: http://www.syncfusion.com/downloads/support/directtrac/130459/WebApplication5-1826036803.zip
Query #2: how to customize the each line separately
Response: You can achieve this requirement using as follows,
Code snippet[C#]:
var index = DropDownList2.SelectedIndex;
this.Chart1.Series[index].Fill = TextBox3.Text;
We have modified the sample based on this. Please find the
sample in following location,
Sample location: http://www.syncfusion.com/downloads/support/directtrac/130459/WebApplication5-797765505.zip
Please let us know if you have any concern.
Thanks,