Jump to content
Software FX Community

AndreG

Staff
  • Posts

    333
  • Joined

  • Last visited

Everything posted by AndreG

  1. chart1.Commands[CommandId.Gallery].SubCommands.RemoveAt(galleryIndex); Here is a list of Galleries and Indexes [0] - Lines [1] - Curves [2] - Area [3] - Curved Area [4] - Step [5] - Bubble [6] - Scatter [7] - Bars [8] - Horizontal Bars [9] - Cubes [10] - Candlestick [11] - OpenHighLowClose [12] - HighLowClose [13] - Pie [14] - Doughnut [15] - Combined [16] - Triangle [17] - Radar [18] - Contour [19] - Surface If multiple galleries will be removed, remove higher index first.
  2. Rendering to stream will give you more control in the sense that you have the img tag, map and the image itself to modify as you wish. But the only interactivity you will get that way would be tooltips and links.
  3. Although not very visible, changing the BorderEffect on bubbles is working. Try setting the bubble to white and the bordereffect it to Light, then to Dark to see the difference. To set the color of the border you need to set BorderEffect to None. This information can be found in the documentation, under PointAttributes.BorderColor Property. Here is a link to the onine version of that page. It has some more useful information. http://support.softwarefx.com/OnlineDoc/CfxNet62//WinAPI/PointAttributes_BorderColor.htm
  4. Please dont spam the forums. Posting your questions once is enough. http://community.softwarefx.com/forums/p/10136/24411.aspx#24411
  5. Sure you can create charts dynamically using Chart FX. I am assuming you have already downloaded the trial, so here is all you need to do. Chart chart1 = new Chart(); chart1.ID = "Chart1"; chart1.Height = 400; chart1.Width = 600; Page.Controls.Add(chart1); Another way you can do this (and have even more control of your charts) is instanciate the chart on code behind and export it. Exporting will create three streams: the chart image, the html image tag and the html image map. You can then modify it (if necessary) and add it to the page. Here is some sample code for that. Chart chart1 = new Chart();System.IO.FileStream fileStream;System.IO.StreamWriter imgMapText;System.IO.StreamWriter htmlTag; fileStream = new System.IO.FileStream(Server.MapPath("chart.jpg"), System.IO.FileMode.Create, System.IO.FileAccess.ReadWrite, System.IO.FileShare.ReadWrite);imgMapText = System.IO.File.CreateText(Server.MapPath("MapTags.txt"));htmlTag = System.IO.File.CreateText(Server.MapPath("HTMLTag.txt"));chart1.ImageSettings.ToolTips = ImageToolTipStyle.AsTitle;chart1.ID = "TestChart";chart1.RenderFormat = "Jpeg"; chart1.RenderToStream(fileStream, imgMapText, htmlTag); imgMapText.Close();htmlTag.Close();fileStream.Close();
  6. You will only get interactivity with the chart (such as zoom) if you render as a .NET control.
  7. 1) You are looking for Conditional Attributes. Take a look at the resource center for a sample 2) The bubbles will stagger automatically (if I understand what you mean by stagger). The floating to the front part is what I am not sure what you mean. That might be a customization that you will have to develop yourself. 3) Not sure what you mean.
  8. I created a little sample web application that demonstrates DrillDown on a Bubble chart. I basically store the ID (employee name on my sample) in the Tag of the points. Then I use that tag to create a Link for every point (using Query Strings). Note that the drilldown will require a PostBack. The newest version of Chart FX (Chart FX 7) has integrated Ajax features that would allow for the drilldown to happen without a PostBack.
  9. RenderFormat ="Auto"That way, if IE browser, the chart will render as .NET. Otherwise will render as img. So the message will never be displayed.
  10. Here is a winforms sample of a bubble chart that gets data from an access db. The API for win and web is the same, so it should work. Note that I associate the second series (index 1) to the secondary Y axis so I can scale it and that way control the size of the bubbles. If you comment that line out or change the Max value, you will see how the size of the bubble changes.
  11. I was going to mention that you were probably in the wrong forum... But I guess you just realized that, you are using the 6.2 version. Ill reply with a new sample on your other post, http://community.softwarefx.com/forums/p/10125/24375.aspx#24375
  12. Unfortunately this feature is not implemented on the current version of GridFX. From what I understand it will be added on the next version. ChartFXTest8.zip
  13. Made you a bubble chart being populated by an Access DB. Hope it helps!
  14. Whenever I see the CFX61B0-3 error, the first thing I do is check to see that the ChartFX70 virtual folder was created in IIS and that it in fact points to to the correspondent ChartFX70 folder inside the installation folder. Also that the folder contains the Download and Temp sub-folders. I believe this is true in your scenario, just figured I posted it here if someone else is having the same issue. Now, as far as permission goes, I belive all you gotta do is enable anonymous access to the virtual directory in IIS. So not Everyone needs Full Control, just IIS (and the impersonated user) needs access to read those files. EDIT: Im assuming you are not ussing any kind of authentication, am I correct?
  15. You just have to use the onCallbackReadyDelegate and clear the processing flag. Here is a link to a very useful Knowledge Base article on Chart FX 7 and AJAX. http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm Also, find attached a sample that updates three charts on a page. Hope it helps.
  16. As a workaround maybe you could measure the distance between the bottom of the chart and the bottom of the pane (assuming you dont have anything docked on the bottom of your chart, like the datagrid). That should be and indication of the size taken by the labels. chart1.Height - chart1.Panes[0].BoundingRectangle.Bottom; Edit: Sorry, wrong Chart FX version... ChartFXTest7.zip
  17. Try the code bellow. Notice I use the %l parameter to grab the labels from the X Axis. The X Axis is not drawn in a Pyramid chart, but it's labels populate the Legend Box as well in these types of chart (as well as in pie and doughnut). The pointlabels format parameters are the same as the ones for the tooltip format. They can be found in the API, under ToolTipFormat property of the chart class. Also note I increased the right margin to avoid clipping. chart1.Data.Series = 1;chart1.Data.Points = 4;chart1.Data[0, 0] = 13;chart1.Data[0, 1] = 20;chart1.Data[0, 2] = 17;chart1.Data[0, 3] = 9;chart1.AxisX.Labels[0] = "First Point";chart1.AxisX.Labels[1] = "2nd Point";chart1.AxisX.Labels[2] = "Third";chart1.AxisX.Labels[3] = "Last Point";chart1.Gallery = Gallery.Pyramid;chart1.AllSeries.PointLabels.Visible = true;chart1.AllSeries.PointLabels.Format = "%l";chart1.AllSeries.PointLabels.Alignment = StringAlignment.Near;chart1.AllSeries.PointLabels.LineAlignment = StringAlignment.Center;chart1.PlotAreaMargin.Right = 50; ChartFXTest5.zip
  18. The legendbox should show the colors by default. The following sample code will reproduce the attached chart. Could you post an image and some sample code to reproduce what you currently have? chart1.Data.Series = 1;chart1.Data.Points = 4;chart1.Data[0, 0] = 13;chart1.Data[0, 1] = 20;chart1.Data[0, 2] = 17;chart1.Data[0, 3] = 9;chart1.Gallery = Gallery.Pyramid;
  19. There is a difference between the legend box shown in a Pie chart and in a Bar chart (for instance). In a Bar chart (and most other types of charts) each item in the legend box represents a Series, while in a Pie chart each item represents a Point. To change the color of a slice in a Pie and have your change be reflected in the legend box, try the following sample. ChartServer chart1 = new ChartServer(pageContext,request,response);chart1.getData().setSeries(1);chart1.getData().setPoints(4);java.util.Random r = new java.util.Random(1);for (int i = 0; i < chart1.getData().getPoints(); i++){ for (int j = 0; j < chart1.getData().getSeries(); j++) { chart1.getData().set(j, i,r.nextDouble()* 80); }}chart1.setGallery(Gallery.PIE);chart1.getPoints().get(0).setColor(java.awt.Color.LIGHT_GRAY);chart1.renderControl();
  20. Verify that Chart FX libraries were copied to the right folders using the following steps: a) Go to C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin (It could be MSSQL.2, MSSQL.4, etc). The .dlls you need here are: ChartFX.ReportingServices.Adornments.dll ChartFX.ReportingServices.Base.dll ChartFX.ReportingServices.dll ChartFX.ReportingServices.Gauge.dll Go to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies. The .dlls and corresponding .xmls that you need here are: ChartFX.ReportingServices.Adornments.dll ChartFX.ReportingServices.Base.dll ChartFX.ReportingServices.Designer.xml ChartFX.ReportingServices.Designer.dll ChartFX.ReportingServices.dll ChartFX.ReportingServices.Gauge.Designer.xml ChartFX.ReportingServices.Gauge.Designer.dll ChartFX.ReportingServices.Gauge.dll If the previously mentioned files are not located in those folders, please copy them from the bin folder of your Chart FX Reporting Services installation. After verifying that these files are located in their correct folders, do the following: Open C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\rssrvpolicy with a text editor (notepad) and add the following entry: <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="SoftwareFX_Strong_Name" Description="This code group grants Chart FX Reporting Services FUllTrust permission."> <IMembershipCondition class="StrongNameMembershipCondition" version="1" PublicKeyBlob="00240000048000009400000006020000002400005253413100040000010001003D35B05AC523A5DBBDB65B6158A5DE0EB20D2519FF6956AE294FCADA2CA2D354428A1163F56E8294C277132BA0759D85B87DF88169B63F8519882738BBA48B91260F3E090252DE6DA366E8F16EE32B4C816CD9F6A466232D57E55BB92CAE3E4A6E01B4C0B41241819D25D5DCBF6F1CDDB0B7ABBAE608CB541106E8855F0BCEB6"/> </CodeGroup> Also, please open C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\rsreportserver and add the following entry: <ReportItems> <ReportItem Name="Chart" Type="ChartFX.ReportingServices.Chart,ChartFX.ReportingServices"/> <ReportItem Name="RadialGauge" Type="ChartFX.ReportingServices.Gauge.RadialGauge,ChartFX.ReportingServices.Gauge"/> <ReportItem Name="VerticalGauge" Type="ChartFX.ReportingServices.Gauge.VerticalGauge,ChartFX.ReportingServices.Gauge"/> <ReportItem Name="HorizontalGauge" Type="ChartFX.ReportingServices.Gauge.HorizontalGauge,ChartFX.ReportingServices.Gauge"/> <ReportItem Name="DigitalPanel" Type="ChartFX.ReportingServices.Gauge.DigitalPanel,ChartFX.ReportingServices.Gauge"/> </ReportItems> I am attaching two files from my own installation. Use them as reference when editing your own files.
  21. I tried and it is working for me. I did not work when I attached to the even on Page_Load, but I guess that is because that would be too late. Sample attached.
  22. I think your description is a little confusing. Can you post a couple screenshots and ilustration of what you mean?
  23. I can think of two ways you can do this. You could add a dummy condition to the ConditionalAttributes collection (chart1.ConditionalAttributes.Add(new ConditionalAttributes()) then use the event chart1_ConditionalAttributesCallback to iterate through every point and evaluate your own condition. This can also be done if you implement the PaintMarker event.
  24. Unfortunately it is not possible to add tooltips to annotation objects.
×
×
  • Create New...