Larsmoll Posted October 30, 2008 Report Share Posted October 30, 2008 Hi! I need to render a chart which is created in code in an aspx-page (not from the ToolBox). I want to render it to a browser client with the menu to it. I just can't get it right. I either get just a graphic image (png or jpg) or I get a graphic image thru the PSS and an imagemap. I want all the other stuff to (javascript etc.). I want the rendering to be readable from any modern browser without any plugin (ActiveX,Flash etc.). I gues I want some straightforward javascripts. If I drag and drop it from the toolbox it gives me all I want (javascripts etc.) but I would rather not do this. I have read thru a bunch of posts and tried many combinations of : theChart.EnableViewState = theChart.UseClientLoader = //theChart.EmbeddedData = theChart.RenderFormat = theChart.OutputWriter = svgWriter; theChart.ImageSettings.Interactive = theChart.RenderControl(); theChart.RenderToStream(); What would be the proper combination of this or am I heading in the wrong direction? TIA Lars :-)) Quote Link to comment Share on other sites More sharing options...
laros79 Posted October 30, 2008 Report Share Posted October 30, 2008 HI - Lars, did you mean to rendering the chart from code behind? if yes the menu will not be showed even you set theChart.ImageSettings.Interactive=True which should be as property to activate the menu. But if you place the chartFX tag on aspx file and you want there is no more intalation on client better you use Image rendering whic will render into PNG file and javascript as control interaction and if you want to change the chart tryu using AJAX callback. <chartfx7:Chart ID="KeyTrendsClientChart" runat="server" Height="400" Width="800" RenderFormat="Image" UseCallbacksForEvents="true" ImageSettings-Interactive="true" > <ToolBar Visible="True" /> </chartfx7:Chart> Quote Link to comment Share on other sites More sharing options...
Larsmoll Posted October 31, 2008 Author Report Share Posted October 31, 2008 Hi and thanks for response! Yes, I mean rendering it from codebehind using .rendercontrol or .rendertostream. For different reasons I do not want to drag the object onto the page, I rather instatiate it thru code. Is it impossible getting the menu this way? If so I will have to rearrange my whole web... TIA Lars :-)) Quote Link to comment Share on other sites More sharing options...
laros79 Posted October 31, 2008 Report Share Posted October 31, 2008 yes ChartFx Cant do that. I also hope that feature... but how to handle the problem if you want to make object as parent chart, I always create polymorphism methode in parent object that inherit ChartFX.webform.chart, one method using "this" as chart object and other using ChartFX.webform.chart as parameter object. so the whole chart in my application has equal standard format. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.