|
Hello,
Thanks for answering quickly. I really appreciate your efforts and your post.
I have change your business logic to .NET code and it is compiled as well but the issue is when i call the method
pb.WriteGraphDefinition()
pb.WritePlotData()
then it turns the single quote symbol to #39; . It is because of framework version .NET 4.0.
I have been stucking for many days.
I am also not able to open you project in NetBeans 7.3 to check how it works.
I wonder if you can help me or not, however i have been posting this in this post.
If you have any suggestion or solution then please let me know.
Thanks & Regards
Santokh SIngh
S.Singh
|
|
|
|
|
you´ll probably just need to escape it. When does it change the value?
Can you post a (short!) code snippet of where it goes wrong?
|
|
|
|
|
I have created a separate dll for this here is link
https://drive.google.com/file/d/0B4FOFOm_nJqbeWJHNm9IOUVhVGc/edit?usp=sharing[^]
I have been using this in ASP.NET MVC 4
I have attached the page code where i have called the method in the end.
@using JQPlotHelper.GraphDefinition;
@using JQPlotHelper.Objects;
@using JQPlotHelper.Page;
@model EnergyAudit.Web.Models.EnergyAuditDashBoardViewModel
@{
ViewBag.Title = "EnergyAuditDashBoad";
Layout = "~/Views/Shared/_Layout.cshtml";
ViewBag.ActiveTab = "DashBoad";
}
<div class="row-fluid">
<div class="span12">
@*<div class="row-fluid">*@
<h4 class="text-center text-error" id="p1">
</h4>
<div class="span12">
<div id="chart-1" style="height: 450px; width: 90%;" />
</div>
<div class="span12">
<div id="partialDiv" style="height: 450px; width: 90%;" />
</div>
@*</div>*@
<ul class="nav nav-pills">
<li class="active">
@Ajax.ActionLink("%kWh Energy Losses", "GetChartData1",
new
{
FromMonth = DateTime.Now.AddMonths(-14).Month,
FromYear = DateTime.Now.AddMonths(-14).Year,
ToMonth = DateTime.Now.AddMonths(-2).Month,
ToYear = DateTime.Now.AddMonths(-2).Year,
LossType = "KWH",
Title = "%kWh_Energy_Losses"
},
new AjaxOptions { UpdateTargetId = "partialDiv" },
new { @class = "btn btn-primary" }); </li>
<li class="divider"></li>
<li class="active"><a class="btn btn-primary" id="kwh" style="width: 140px; height: 20px">
% kWh Loss</a></li>
<li class="divider"></li>
<li><a class="btn btn-primary" id="tec" style="width: 140px; height: 20px">% Technical
kWh Loss</a></li>
<li class="divider"></li>
<li><a class="btn btn-primary" id="com" style="width: 140px; height: 20px">% Commercial
kWh Loss</a></li>
<li class="divider"></li>
<li><a class="btn btn-primary" id="rev" style="width: 140px; height: 20px">Revenue Growth</a></li>
<li class="divider"></li>
<li><a class="btn btn-primary" id="col" style="width: 140px; height: 20px">Collection
Efficiency</a></li>
<li class="divider"></li>
<li><a class="btn btn-primary" id="atc" style="width: 140px; height: 20px">% AT&C Losses</a></li>
<li class="divider"></li>
<li><a class="btn btn-primary" id="reset" style="width: 140px; height: 20px">Reset Zoom</a></li>
<li class="divider"></li>
</ul>
</div>
</div>
@section Scripts
{
<script type="text/javascript">
var FromMonth = 5, FromYear = 2013, ToMonth = 5, ToYear = 2015;
$(document).ready(function () {
});
$('#reset').click(function () { plot1.resetZoom() });
$('#kwh').click(
function (e) {
var url = 'Home/GetChartData?';
url = url + 'FromMonth=' + FromMonth;
url = url + '&FromYear=' + FromYear;
url = url + '&ToMonth=' + FromMonth;
url = url + '&ToYear=' + ToYear;
url = url + '&LossType=KWH';
url = url + '&Title=' + 'kWh % Loss Chart';
PrepareChareData(url, "kWh % Loss Chart");
});
$('#tec').click(
function (e) {
var url = 'Home/GetChartData?';
url = url + 'FromMonth=' + FromMonth;
url = url + '&FromYear=' + FromYear;
url = url + '&ToMonth=' + FromMonth;
url = url + '&ToYear=' + ToYear;
url = url + '&LossType=TECH';
url = url + '&Title=' + "Technical kWh % Loss Chart";
PrepareChareData(url, "Technical kWh % Loss Chart");
});
$('#atc').click(
function (e) {
var url = 'Home/GetChartData?';
url = url + 'FromMonth=' + FromMonth;
url = url + '&FromYear=' + FromYear;
url = url + '&ToMonth=' + FromMonth;
url = url + '&ToYear=' + ToYear;
url = url + '&LossType=ATNC';
url = url + '&Title=' + "ATNC % Loss Chart";
PrepareChareData(url, "ATNC % Loss Chart");
});
$('#com').click(
function (e) {
var url = 'Home/GetChartData?';
url = url + 'FromMonth=' + FromMonth;
url = url + '&FromYear=' + FromYear;
url = url + '&ToMonth=' + FromMonth;
url = url + '&ToYear=' + ToYear;
url = url + '&LossType=COM';
url = url + '&Title=' + "Commercial kWh % Loss Chart";
PrepareChareData(url, "Commercial kWh % Loss Chart");
});
$('#rev').click
(
function (e) {
var url = 'Home/GetChartData?';
url = url + 'FromMonth=' + FromMonth;
url = url + '&FromYear=' + FromYear;
url = url + '&ToMonth=' + FromMonth;
url = url + '&ToYear=' + ToYear;
url = url + '&LossType=REV';
url = url + '&Title=' + "Revenue Growth - INR Chart";
PrepareChareData(url, "Revenue Growth - INR Chart");
}
);
$('#col').click(
function (e) {
var url = 'Home/GetChartData?';
url = url + 'FromMonth=' + FromMonth;
url = url + '&FromYear=' + FromYear;
url = url + '&ToMonth=' + FromMonth;
url = url + '&ToYear=' + ToYear;
url = url + '&LossType=COLL';
url = url + '&Title=' + "% Collection Effieiency Chart";
PrepareChareData(url, "% Collection Effieiency Chart");
});
function PrepareChareData(ActionMethodUrl, ChartTitle) {
$.ajax
({
url: ActionMethodUrl,
type: 'GET',
success: function (result) {
$("#chart-1").html('');
$("#chart-1").html(result.data);
},
error: function () { }
})
}
function CreateChart(Losses, Locations, Period, ChartTitle) {
$('#p1').text(ChartTitle);
var plot1 = $.jqplot('chart-1', [Losses], {
seriesDefaults: {
renderer: $.jqplot.BarRenderer,
rendererOptions: { fillToZero: true },
tickOptions: { angle: 30 },
pointLabels: { show: true }
},
series: [],
axes:
{
xaxis:
{
renderer: $.jqplot.CategoryAxisRenderer,
ticks: days
},
yaxis:
{
pad: 1.05
}
},
legend: {
show: true,
location: 'e',
placement: 'outside'
},
cursor: {
show: true,
zoom: true,
showTooltip: false
}
});
}
function LoadBarChart(stats, stats1, stats2, days, chtitle) {
$('#p1').text(chtitle);
var plot1 = $.jqplot('chart-1', [stats, stats1, stats2], {
seriesDefaults: {
renderer: $.jqplot.BarRenderer,
rendererOptions: { fillToZero: true },
tickOptions: { angle: 30 },
pointLabels: { show: true }
},
series: [{ label: 'NAHAN' }, { label: 'SHIMLA' }, { label: 'CHOTA SHIMLA'}],
axes:
{
xaxis:
{
renderer: $.jqplot.CategoryAxisRenderer,
ticks: days
},
yaxis:
{
pad: 1.05
}
},
legend: {
show: true,
location: 'e',
placement: 'outside'
},
cursor: {
show: true,
zoom: true,
showTooltip: false
}
});
}
function ChangeLinkColor(option) {
if (option == 'kwh') {
$('#kwh').attr('class', 'btn btn-danger');
$('#tec').attr('class', 'btn btn-primary');
$('#atc').attr('class', 'btn btn-primary');
$('#col').attr('class', 'btn btn-primary');
$('#com').attr('class', 'btn btn-primary');
$('#rev').attr('class', 'btn btn-primary');
}
else if (option == 'tec') {
$('#kwh').attr('class', 'btn btn-primary');
$('#tec').attr('class', 'btn btn-danger');
$('#atc').attr('class', 'btn btn-primary');
$('#col').attr('class', 'btn btn-primary');
$('#com').attr('class', 'btn btn-primary');
$('#rev').attr('class', 'btn btn-primary');
}
else if (option == 'atc') {
$('#kwh').attr('class', 'btn btn-primary');
$('#tec').attr('class', 'btn btn-primary');
$('#atc').attr('class', 'btn btn-danger');
$('#col').attr('class', 'btn btn-primary');
$('#com').attr('class', 'btn btn-primary');
$('#rev').attr('class', 'btn btn-primary');
}
else if (option == 'col') {
$('#kwh').attr('class', 'btn btn-primary');
$('#tec').attr('class', 'btn btn-primary');
$('#atc').attr('class', 'btn btn-primary');
$('#col').attr('class', 'btn btn-danger');
$('#com').attr('class', 'btn btn-primary');
$('#rev').attr('class', 'btn btn-primary');
}
else if (option == 'com') {
$('#kwh').attr('class', 'btn btn-primary');
$('#tec').attr('class', 'btn btn-primary');
$('#atc').attr('class', 'btn btn-primary');
$('#col').attr('class', 'btn btn-primary');
$('#com').attr('class', 'btn btn-danger');
$('#rev').attr('class', 'btn btn-primary');
}
else if (option == 'rev') {
$('#kwh').attr('class', 'btn btn-primary');
$('#tec').attr('class', 'btn btn-primary');
$('#atc').attr('class', 'btn btn-primary');
$('#col').attr('class', 'btn btn-primary');
$('#com').attr('class', 'btn btn-primary');
$('#rev').attr('class', 'btn btn-danger');
}
}
</script>
}
|
|
|
|
|
That´s a bit much to look at. Where is the quote being converted to #39; exactly? Did you step through the code?
Often it is just a matter of or escaping the quote in the string or converting the #39 back to quote.
Did you try a view page source?
Just an idea, but I would place a label in the Asp.Net page and just set that to the value of the (overriden) ToString method. Then you can build all the logic into the code behind.
Hope this helps.
|
|
|
|
|
Hello,
Actually There is section in the end of the html attached here.
Code Is
//Created instance of Class
@{
PageBuilder pb = new PageBuilder();
pb.WritePlotData();
}
<Script type="javascripr/text">
<a href="/Members/PB">@pb</a>.
</script>
Where I called the your function WriteChartData() defined in pagebuilder in your business logic.
when the page loaded it parse string in javascript at that moment it converts single quote to #39;
I have tried many ways to escape this character but could not succeed.
Thanks for helping me out of the situation.
Thanks & Regards
S.Singh
<script type="text/javascript">
var series_a = [[(new Date(1,1,1,0,0,0,0)).getTime(),0],[(new Date(1,1,1,0,0,0,0)).getTime(),1],[(new Date(1,1,1,0,0,0,0)).getTime(),1.4142135623731],[(new Date(1,1,1,0,0,0,0)).getTime(),1.73205080756888],[(new Date(1,1,1,0,0,0,0)).getTime(),2],[(new Date(1,1,1,0,0,0,0)).getTime(),2.23606797749979],[(new Date(1,1,1,0,0,0,0)).getTime(),2.44948974278318],[(new Date(1,1,1,0,0,0,0)).getTime(),2.64575131106459],[(new Date(1,1,1,0,0,0,0)).getTime(),2.82842712474619],[(new Date(1,1,1,0,0,0,0)).getTime(),3],[(new Date(1,1,1,0,0,0,0)).getTime(),3.16227766016838],[(new Date(1,1,1,0,0,0,0)).getTime(),3.3166247903554],[(new Date(1,1,1,0,0,0,0)).getTime(),3.46410161513775],[(new Date(1,1,1,0,0,0,0)).getTime(),3.60555127546399],[(new Date(1,1,1,0,0,0,0)).getTime(),3.74165738677394],[(new Date(1,1,1,0,0,0,0)).getTime(),3.87298334620742],[(new Date(1,1,1,0,0,0,0)).getTime(),4],[(new Date(1,1,1,0,0,0,0)).getTime(),4.12310562561766],[(new Date(1,1,1,0,0,0,0)).getTime(),4.24264068711928],[(new Date(1,1,1,0,0,0,0)).getTime(),4.35889894354067],[(new Date(1,1,1,0,0,0,0)).getTime(),4.47213595499958],[(new Date(1,1,1,0,0,0,0)).getTime(),4.58257569495584],[(new Date(1,1,1,0,0,0,0)).getTime(),4.69041575982343],[(new Date(1,1,1,0,0,0,0)).getTime(),4.79583152331272],[(new Date(1,1,1,0,0,0,0)).getTime(),4.89897948556636],[(new Date(1,1,1,0,0,0,0)).getTime(),5],[(new Date(1,1,1,0,0,0,0)).getTime(),5.09901951359278],[(new Date(1,1,1,0,0,0,0)).getTime(),5.19615242270663],[(new Date(1,1,1,0,0,0,0)).getTime(),5.29150262212918],[(new Date(1,1,1,0,0,0,0)).getTime(),5.3851648071345],[(new Date(1,1,1,0,0,0,0)).getTime(),5.47722557505166],[(new Date(1,1,1,0,0,0,0)).getTime(),5.56776436283002],[(new Date(1,1,1,0,0,0,0)).getTime(),5.65685424949238],[(new Date(1,1,1,0,0,0,0)).getTime(),5.74456264653803],[(new Date(1,1,1,0,0,0,0)).getTime(),5.8309518948453],[(new Date(1,1,1,0,0,0,0)).getTime(),5.91607978309962],[(new Date(1,1,1,0,0,0,0)).getTime(),6],[(new Date(1,1,1,0,0,0,0)).getTime(),6.08276253029822],[(new Date(1,1,1,0,0,0,0)).getTime(),6.16441400296898],[(new Date(1,1,1,0,0,0,0)).getTime(),6.2449979983984],[(new Date(1,1,1,0,0,0,0)).getTime(),6.32455532033676],[(new Date(1,1,1,0,0,0,0)).getTime(),6.40312423743285],[(new Date(1,1,1,0,0,0,0)).getTime(),6.48074069840786],[(new Date(1,1,1,0,0,0,0)).getTime(),6.557438524302],[(new Date(1,1,1,0,0,0,0)).getTime(),6.6332495807108],[(new Date(1,1,1,0,0,0,0)).getTime(),6.70820393249937],[(new Date(1,1,1,0,0,0,0)).getTime(),6.78232998312527],[(new Date(1,1,1,0,0,0,0)).getTime(),6.85565460040104],[(new Date(1,1,1,0,0,0,0)).getTime(),6.92820323027551],[(new Date(1,1,1,0,0,0,0)).getTime(),7],[(new Date(1,1,1,0,0,0,0)).getTime(),7.07106781186548],[(new Date(1,1,1,0,0,0,0)).getTime(),7.14142842854285],[(new Date(1,1,1,0,0,0,0)).getTime(),7.21110255092798],[(new Date(1,1,1,0,0,0,0)).getTime(),7.28010988928052],[(new Date(1,1,1,0,0,0,0)).getTime(),7.34846922834953],[(new Date(1,1,1,0,0,0,0)).getTime(),7.41619848709566],[(new Date(1,1,1,0,0,0,0)).getTime(),7.48331477354788],[(new Date(1,1,1,0,0,0,0)).getTime(),7.54983443527075],[(new Date(1,1,1,0,0,0,0)).getTime(),7.61577310586391],[(new Date(1,1,1,0,0,0,0)).getTime(),7.68114574786861],[(new Date(1,1,1,0,0,0,0)).getTime(),7.74596669241483],[(new Date(1,1,1,0,0,0,0)).getTime(),7.81024967590665],[(new Date(1,1,1,0,0,0,0)).getTime(),7.87400787401181],[(new Date(1,1,1,0,0,0,0)).getTime(),7.93725393319377],[(new Date(1,1,1,0,0,0,0)).getTime(),8],[(new Date(1,1,1,0,0,0,0)).getTime(),8.06225774829855],[(new Date(1,1,1,0,0,0,0)).getTime(),8.12403840463596],[(new Date(1,1,1,0,0,0,0)).getTime(),8.18535277187245],[(new Date(1,1,1,0,0,0,0)).getTime(),8.24621125123532],[(new Date(1,1,1,0,0,0,0)).getTime(),8.30662386291807],[(new Date(1,1,1,0,0,0,0)).getTime(),8.36660026534076],[(new Date(1,1,1,0,0,0,0)).getTime(),8.42614977317636],[(new Date(1,1,1,0,0,0,0)).getTime(),8.48528137423857],[(new Date(1,1,1,0,0,0,0)).getTime(),8.54400374531753],[(new Date(1,1,1,0,0,0,0)).getTime(),8.60232526704263],[(new Date(1,1,1,0,0,0,0)).getTime(),8.66025403784439],[(new Date(1,1,1,0,0,0,0)).getTime(),8.71779788708135],[(new Date(1,1,1,0,0,0,0)).getTime(),8.77496438739212],[(new Date(1,1,1,0,0,0,0)).getTime(),8.83176086632785],[(new Date(1,1,1,0,0,0,0)).getTime(),8.88819441731559],[(new Date(1,1,1,0,0,0,0)).getTime(),8.94427190999916],[(new Date(1,1,1,0,0,0,0)).getTime(),9],[(new Date(1,1,1,0,0,0,0)).getTime(),9.05538513813742],[(new Date(1,1,1,0,0,0,0)).getTime(),9.1104335791443],[(new Date(1,1,1,0,0,0,0)).getTime(),9.16515138991168],[(new Date(1,1,1,0,0,0,0)).getTime(),9.21954445729289],[(new Date(1,1,1,0,0,0,0)).getTime(),9.2736184954957],[(new Date(1,1,1,0,0,0,0)).getTime(),9.32737905308882],[(new Date(1,1,1,0,0,0,0)).getTime(),9.38083151964686],[(new Date(1,1,1,0,0,0,0)).getTime(),9.4339811320566],[(new Date(1,1,1,0,0,0,0)).getTime(),9.48683298050514],[(new Date(1,1,1,0,0,0,0)).getTime(),9.53939201416946],[(new Date(1,1,1,0,0,0,0)).getTime(),9.59166304662544],[(new Date(1,1,1,0,0,0,0)).getTime(),9.64365076099295],[(new Date(1,1,1,0,0,0,0)).getTime(),9.69535971483266],[(new Date(1,1,1,0,0,0,0)).getTime(),9.74679434480896],[(new Date(1,1,1,0,0,0,0)).getTime(),9.79795897113271],[(new Date(1,1,1,0,0,0,0)).getTime(),9.8488578017961],[(new Date(1,1,1,0,0,0,0)).getTime(),9.89949493661167],[(new Date(1,1,1,0,0,0,0)).getTime(),9.9498743710662]];var series_b = [[(new Date(1,1,Monday,0,0,0,0)).getTime(),0],[(new Date(1,1,Monday,0,0,0,0)).getTime(),0.142857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),0.285714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),0.428571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),0.571428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),0.714285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),0.857142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),1.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),2.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),3.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),4.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),5.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),6.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7.28571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),7.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8.28571428571428],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),8.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9.14285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9.28571428571428],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9.42857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9.57142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9.71428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),9.85714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10.1428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10.2857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10.4285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10.5714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10.7142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),10.8571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11.1428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11.2857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11.4285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11.5714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11.7142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),11.8571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12.1428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12.2857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12.4285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12.5714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12.7142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),12.8571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13.1428571428571],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13.2857142857143],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13.4285714285714],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13.5714285714286],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13.7142857142857],[(new Date(1,1,Monday,0,0,0,0)).getTime(),13.8571428571429],[(new Date(1,1,Monday,0,0,0,0)).getTime(),14],[(new Date(1,1,Monday,0,0,0,0)).getTime(),14.1428571428571]];var legendlabels = "['''Series "A''', '''Series B'''];
modified 17-Jun-14 11:30am.
|
|
|
|
|
|
Ok. I shall try all the solution and will let you know what is the outcome.
Thanks a lot for your help
Thanks & Regards
s.singh
|
|
|
|
|
Hi is there any solution in .net as well
|
|
|
|
|
Hi,
thanks for your interest in my article.
I did not write a .Net version (yet). However, this code can be easily ported to C# since Java and C# are very similar in syntax. If you keep the getters and setters as is, it´s basically copy/paste with few modifications. Else you´ll just need to rewrite those in properties which is pretty easy.
My guess is you can have a .Net assembly in less then a day.
|
|
|
|
|