Location of Chart Image for custom dashboard

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
phil1995
Newbie
Newbie
Posts: 1
Joined: Wed May 02, 2012 12:00 am

Location of Chart Image for custom dashboard

Post by phil1995 » Fri Mar 01, 2013 2:37 pm

I am attempting to build a custom dashboard in ASP.Net. I would like to use the images from the charts that are already displayed on the web as graphics on the dashboard. I am attempting to use JQUERY to pull the image from the div on the current web pages (as to avoid having to maintain two pages). I am only getting an X where the image should be. I know this is due to the path being incorrect for the current page. I can replace the path with a jquery string, but I am just not sure what the path should be to retrieve the image. The JQUERY is listed below. the second routine, is attempting to replace the path of the image with an absolute path. When I look at the path that I am returning in the page inspector, I get this.

<img name="WebChart9img" id="WebChart9img" src="GetChart.aspx?Chart=WebChart910493223634977236498828311png" border="0" GALLERYIMG="no"/>

is there an absolute path that I can replace the src="GetChart.aspx?Chart=WebChart910493223634977236498828311png" with to access the image generated by the web page?


<script type="text/javascript" >

$(document).ready(function() {
$("#Button1").click(function() {
alert("Hello world!");
});
$('#div2').load('http://10.49.32.29/rnsmetricsfw40/icshitmiss.aspx #WebChart9img');


$("img").each(function () {
$(this).attr({
src: 'http://10.49.32.29/rnsmetricsfw40/' + $(this).attr('src')
});
});

});



</script>

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Location of Chart Image for custom dashboard

Post by Sandra » Mon Mar 04, 2013 3:54 pm

Hello phil1995,

You can use the GetChartFile property to set the full path of where you wish the GetChart routine to reside. It could be the same as the default location
but if you set the property you can then repeat that full http path with your own code. For non-file temporary TempChart formats please note that
there is a cache timeout of the chart of 40 seconds.If the TempChart property is set to 'file' then the temporary chart will reside on disk, eg. WebChart910493223634977236498828311png plus extension .png, ie. WebChart910493223634977236498828311png.png, and might be quicker to extract by putting in the path directly to the temporary URL location.


Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply