Jump to content
Software FX Community

rkw6086

Members
  • Posts

    19
  • Joined

  • Last visited

rkw6086's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I did the same thing yesterday! Cool example! Let us know if you need help understanding how this demo works. On the top level project node in Visual Studio, click "Add References..." When it loads the popup window, add Chart FX (WebForms) and Chart FX Base (WebForms). Click "OK" and rebuild.
  2. This should give you an idea of how to go about doing it. :-D AxisY tempAxis = new AxisY(); tempAxis.Min = 0; //highestValue is my array of the highestValues recorded on the series tempAxis.Max = Math.Round(highestValues[series.Text]); tempAxis.TextColor = series.Color; tempAxis.Position = AxisPosition.Near; tempAxis.Title.Text = config.OwnAxisTitle; tempAxis.Max = tempAxis.Max + tempAxis.Step; series.AxisY = tempAxis; chartToConfigure.AxesY.Add(tempAxis); Fast enough? I hope this helps you out.
  3. Those dates are automatically generated by the chart itself. You could change the data type of the x axis to be a string. This will force the chart to not to do it's awesome magic with dates on the x axis. You can change the X Axis with the following line: yourChart.AxisX.DataFormat = AxisFormat.None; I might be wrong on the exact choice, but this should put you in the right step.
  4. The bad way, but quickest is to surround all the code blocks that deal with ChartFX with Try Catch blocks. The good way is to anaylize your code, find out where you could possibly have errors and surround only those blocks with Try Catch blocks.
  5. I'm wanting to show the alert dialog that shows up when there's an error in ChartFX on the server side. FYI, I'm using the .NET render mode. Is there a way to summon this? I don't want to do any javascript work, I would rather it all be done in my ASP.NET server code. I'm thinking it can be done using the setMessageText, but well, I can't find any details about what each one the keys do. Does anyone know how to get this working?
  6. I have a critical issue that I can't seem to resolve. ChartFX is rounding my data. I have values like 2438.3296 and for some reason, ChartFX plots it as 2438. Its vital that it plots it as 2438.3296. Now, at first, I thought it was the fact that I was using the Crosstab Data Provider, but I followed the information all the way, even checked the data source of the Crosstab Data Provider, and the data never gets rounded. The rounding only happens when ChartFX plots. I know this because I look at the data grid and see the rounded information. Is there a setting that I can set to make ChartFX stop it's rounding business?
  7. I think you can do this by setting the picture property on the point. Let me give you an example: <Chart> is your chart instance <Series#> is the number to your series <Point#> is the point you wish to change <Image> is the string location to the image.C# line of code. <Chart>.Points[<Series#>,<Point#>].Picture = System.Drawing.Image.FromFile(<Image>); This should replace the marker with the picture. In your case, you are going to have to enumerate through each point, check it's value, and then set your image based off that value so you can get your desired results. If I'm not mistaking, I think the value of a point is the text property. I could be wrong, but this should be enough to get you going. :-D
  8. Hello community, I'm wanting to understand how the .NET render mode works. Not so much how you've created the control, but a high level diagram I can look at that explains to me how the .NET control and the asp page communicates with the PSS server. I found one on how the image mode works, but not the .NET render mode. As helpful as that was, it not diagramming .NET. Can anyone shed some light on the .NET render mode so I can explain the tool to my client? Thanks for any help because all I have now are my theories. And to further emphasize what I said above, I'm not looking for source code or a "how to" on creating my own control, just how the .NET control interacts with the PSS service and the asp page/server.
  9. It's because you're using the wrong method. :-) System.Drawing.Color.FromName(string); only works with a name of a color like black, blue, red, orange, etc.... You're attempting to pass in a hexadecimal representation of a color so since the color name isn't a hexadecimal, the method returns pure white as a default. Microsoft created a whole new method just for something like this. Instead of calling Color.FromName(string), call ColorTranslator.FromHtml(string), This will return you a color value based off your hexadecimal string.
  10. When you use a MasterPage, ASP adds on a GUID to the beginning of the Control ID. You don't know what this is in Javascript. So, in your Javascript, replace Chart1 with <% ChartVar.UniqueID %> Where ChartVar is the C# variable name of your chart. *Note this will only work if you're Javascript is in the master page and not in a separate file. If it's in a separate file, you'll need to capture the text and do a string replace on the file to replace the Chart1 with the ChartVar.UniqueID then inject that to your page. I know this is confusing but this is just how ASP keeps all controls unique. Let me know if you're confused and I'll elaborate some more.
  11. Good morning! I'm working on a project that requires me to create a ChartFX web part for SharePoint. The goal is that we needed to have the chart be entirely configurable through XML. Well, I got that down and now I'm getting this weird error that I wasn't getting before when we were hard coding in our data providers. Input string was not in a correct format No, let me tell you what's happening. The WebPart loads in the data, then I'm using the CrosstabDataProvider to create the multiple series. The table is structured like so. *For security reasons, actual data is not available* DateTime Key Value 12/1/2008 12:00:00 AM Series 1 2 12/1/2008 12:00:00 AM Series 2 4 12/2/2008 12:00:00 AM Series 1 12 12/2/2008 12:00:00 AM Series 2 6 Now, the only thing I'm doing different is that I'm using a generic data provider that uses XML to get the data, and parse it into this format. I'm doing nothing else different but that. The field mappings have remained the same, the data coming is is exactly the same as the data that was coming in when I had the hard coded data provider. Does anyone have any as to why I would be getting this error?
  12. We had a very similar issue with this. It was working for me, and then we posted our site and everything just crapped out. Looking at your reply, you never mentioned making the PSS directory in the ChartFX70 directory an application. This is required for ChartFX to work. In IIS, browse to your application's virtual directory. Expand the ChartFX70 directory there. If it's not there, then create it. Expand that ChartFX Virtual Directory and then right click the PSS directory and go to properties. In there, you should see a check box that says something like "Make this an application". Make sure that this is checked, or running as an application. Restart IIS if it's not set up as an application and then your application should run. If not, let us know what your IIS directory looks like and we can go from there. :-)
  13. There is no way I can think of for you to zoom in to a specific value in ChartFX. I know you can zoom in by a percentage or by specifying a window in your chart, but as far as saying I want to zoom into a specific value, I don't think you can do that. What kind of data source are you using? I would say you will have to adjust your data source. If your source is SQL, that's a pretty simple query to make this happen. If your using an array, you just have to modify your code that creates the array.
  14. Madhu, We have the same issue. After looking over custom pallets, it doesn't look like you can specify which color goes on which series. We solved this solution by cycling through each series in code during initialization, matching it's title to our specifications, and then setting the Series Attributes properties to match what we want. This is going to be the best possible way to update your chart colors. The only way I think you can accomplish this with Pallets is if you know the order of your series each time. If thats the case, then give pallets a try. :-)
  15. NM. Found a posting that had what I needed. Sorry for the spam if you subscribe to this forum. :-)
×
×
  • Create New...