User (Legacy) Posted November 17, 2006 Report Share Posted November 17, 2006 Hello, I have a bar graph with 2 series, displaying the value at the top of the bar in a pointlabel. I would also like to activate the tooltips so that the pointlabel text displays in the tooltip. I have set the ShowTips to True and the tipmask to "%v". The tips are still not displaying on the chart. I think I've missed something. Regards Russ This is the code: I am using ChartFX 6.2 With c .Gallery = SoftwareFX.ChartFX.Gallery.Bar .AxisY.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.Number .AxisY.LabelsFormat.Decimals = 0 .Series(0).Color = Color1 .Series(1).Color = Color.FromArgb(150, Color2) .PointLabels = True .PointLabelColor = Color.Black .PointLabelFont = New Font("Arial", 7, GraphicsUnit.Point) .ShowTips = True .TipMask = "%v" .PointLabelAlign = SoftwareFX.ChartFX.LabelAlign.Center .Stacked = SoftwareFX.ChartFX.Stacked.No .SerLegBoxObj.Docked = SoftwareFX.ChartFX.Docked.Top End With Link to comment Share on other sites More sharing options...
Software FX Posted November 20, 2006 Report Share Posted November 20, 2006 Are you generating an image ? If so, make sure you are generating an image map as well, if you are using Chart FX 6.2, the default is no image map, to enabled it do: Chart1.ImgMap |= ImgMap.TitleTip; -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 21, 2006 Author Report Share Posted November 21, 2006 The Chart is generated from a datatable and I am not generating an image map. Let me enable the image map and see what happens. Thank you for your response. Russ "Software FX" <noreply@softwarefx.com> wrote in message news:LztBZmPDHHA.3220@webserver3.softwarefx.com... > Are you generating an image ? If so, make sure you are generating an image > map as well, if you are using Chart FX 6.2, the default is no image map, to > enabled it do: > > Chart1.ImgMap |= ImgMap.TitleTip; > > -- > Francisco Padron > www.chartfx.com > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 22, 2006 Author Report Share Posted November 22, 2006 Hello, I set the ImgMap to ImgMap.TitleTip and tools tips did display in my charts, however there is new issue. I am using mulitple charts in a sharepoint webpage each in its own webpart. There are four webparts to the page, think of a square divided into quadrants. The top two quads and the lower left quad only have one chart. The lower right quad has two charts displayed on top of each other. Here is the problem. The tool tip values that are displaying in the top quads and lower left quads belong to the values of the chart in the lower left quad. In the lower right quad the second chart displays the correct values in the tooltips and the top chart does not display any tooltips. ImgMap property is set for each chart and as far as I have been able to determine the chart id's are unique (though I will double check this) I need each of these charts to display their point values in the tooltips. Any help will be greatly appreciated. Regards, Russ "Russ Murray" <russmurray1@comcast.net> wrote in message news:MZyZdzWDHHA.2096@webserver3.softwarefx.com... > The Chart is generated from a datatable and I am not generating an image > map. > Let me enable the image map and see what happens. > > Thank you for your response. > > Russ > > "Software FX" <noreply@softwarefx.com> wrote in message > news:LztBZmPDHHA.3220@webserver3.softwarefx.com... > > Are you generating an image ? If so, make sure you are generating an image > > map as well, if you are using Chart FX 6.2, the default is no image map, > to > > enabled it do: > > > > Chart1.ImgMap |= ImgMap.TitleTip; > > > > -- > > Francisco Padron > > www.chartfx.com > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted November 22, 2006 Report Share Posted November 22, 2006 Make sure you assign a unique ID to each chart in the form. The problem you are experiencing is caused by having charts with the same ID in the same page. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 23, 2006 Author Report Share Posted November 23, 2006 Hello, My unique ids were not quite unique enough. I changed the code slightly and that problem has been resolved. I have one more problem. In one of my charts the values displayed in the tooltips are incorrect. The values displaye are those for the next point to the right on the X axis. The March tooltip is displaying April's value and so on, however, the last point displays the proper value. What is unusual about this chart is that I had to add 4 new series after binding so that the first categories display as bar charts and the rest display as lines and an area. I think this is what is throwing off the mapping. Is there an easy way to resolve this problem or should I just add use the point's tag property and %L as a code around? I have attached an excel sheet that contains the chart and the data to help illustrate my problem. Thanks for your help. Regards, Russ "Software FX" <noreply@softwarefx.com> wrote in message news:eJNNn0kDHHA.2096@webserver3.softwarefx.com... > Make sure you assign a unique ID to each chart in the form. > > The problem you are experiencing is caused by having charts with the same ID > in the same page. > > -- > Francisco Padron > www.chartfx.com > > Link to comment Share on other sites More sharing options...
Software FX Posted November 23, 2006 Report Share Posted November 23, 2006 Try the following BEFORE you assign the Series Galleries and Data. chart.Gallery = Gallery.Bar; Or, if the problem persists: chart.Gallery = Gallery.Lines; Let me know of the results. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 23, 2006 Author Report Share Posted November 23, 2006 Thanks for the prompt response. I tried your suggestion both ways and it did not resolve the issue. Regards, Russ "Software FX" <noreply@softwarefx.com> wrote in message news:gY#uefwDHHA.2096@webserver3.softwarefx.com... > Try the following BEFORE you assign the Series Galleries and Data. > > chart.Gallery = Gallery.Bar; > > Or, if the problem persists: > > chart.Gallery = Gallery.Lines; > > Let me know of the results. > > -- > Francisco Padron > www.chartfx.com > > > Link to comment Share on other sites More sharing options...
Software FX Posted November 27, 2006 Report Share Posted November 27, 2006 We are unable to reproduce this problem. Please provide with a simple Web Form that reproduces the problem. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 28, 2006 Author Report Share Posted November 28, 2006 Hello, Attached is a small project that duplicates the chart in question. I placed the txt file that fills the chart in C:\temp. I have also included the excel sheet that has points out the problem. The code the create the charts is the same code that I am using in my production project. However I am having one problem with this demo project I can duplicate the chart but I can't get the tooltips displaying so I don't know if this code is duplicating the original problem. It is the same code though. Thanks. Russ "Software FX" <noreply@softwarefx.com> wrote in message news:CaLu2MkEHHA.564@webserver3.softwarefx.com... > We are unable to reproduce this problem. Please provide with a simple Web > Form that reproduces the problem. > > -- > Francisco Padron > www.chartfx.com > > Link to comment Share on other sites More sharing options...
Software FX Posted November 28, 2006 Report Share Posted November 28, 2006 Adding: _chart.ID = "Chart1" Makes the tooltips show-up (the chart had no ID before). However I don't see anything wrong with the tooltips, they show the correct values, where specifically in the chart are you seeing the incorrect tooltips. -- Francisco Padron www.chartfx.com ChartFXTooltip.zip Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 28, 2006 Author Report Share Posted November 28, 2006 Whoops. Forgot the id. Sorry about that. I just added the id and ran the project. The problem does duplicate. If you place the mouse cursor over the blue line (PY in the legend) at March, the value displayed is 180,176. This is April's value. The PY value for March should display around 134,000. This continues on until the last point. August' value is correct. Thanks. Russ "Software FX" <noreply@softwarefx.com> wrote in message news:kH8M4AwEHHA.564@webserver3.softwarefx.com... > Adding: > > _chart.ID = "Chart1" > > Makes the tooltips show-up (the chart had no ID before). > > However I don't see anything wrong with the tooltips, they show the correct > values, where specifically in the chart are you seeing the incorrect > tooltips. > > -- > Francisco Padron > www.chartfx.com > > Link to comment Share on other sites More sharing options...
Software FX Posted November 28, 2006 Report Share Posted November 28, 2006 The line segment is BETWEEN two values, what you see is the first value, you can have it show both beginning and end value by doing: .TipMask = "%v - %v" Unfortunately there is no way to do this selectively per-series. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted November 28, 2006 Report Share Posted November 28, 2006 Another option: Set: .MarkerShape = SoftwareFX.ChartFX.MarkerShape.Rect .ImgMap = ImgMap.TitleTip Or ImgMap.NoConnected .TipMask = "%v" This will show tooltips only for the markers not for the segments between the markers which elimintes the problem with the segment not belonging to any one particular value. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 29, 2006 Author Report Share Posted November 29, 2006 Hello, I tried the first suggestion with the range, unfortunately the data is still not correct. If I move the cursor to the March point of the PY line (blue), it displays 180,175 - 225,043. This is the range from April to May. March to April is gone. Your second suggestion works. Marcy displays 134,139. Unfortunately the clients do not want markers on the lines. I wrote a code around for it. I set the Tag value with the right value and use %L. This works. I was hoping to avoid it. If you have any other suggestions, I will be happy to try them. Thank you for your efforts. Russ Private Sub SetPointTag(ByVal c As Chart) Dim i As Integer, iValues As Integer Dim j As Integer, iSeries As Integer Dim iPoint As Integer iValues = c.NValues iSeries = c.NSeries For i = 0 To iSeries - 1 For j = 0 To iValues - 1 Select Case j 'Need to do this as a code around. Adding the new series and setting them to different galleries breaks the image map Case 0, 1, (iValues - 1) iPoint = j Case Else iPoint = j - 1 'this compensates for the points being shifted by 1 to the right End Select c.Point(i, j).Tag = FormatNumber(c.Value.Item(i, iPoint), 0) Next Next End Sub "Software FX" <noreply@softwarefx.com> wrote in message news:XGzrGczEHHA.2096@webserver3.softwarefx.com... > Another option: > > Set: > > .MarkerShape = SoftwareFX.ChartFX.MarkerShape.Rect > > .ImgMap = ImgMap.TitleTip Or ImgMap.NoConnected > > .TipMask = "%v" > > This will show tooltips only for the markers not for the segments between > the markers which elimintes the problem with the segment not belonging to > any one particular value. > > -- > Francisco Padron > www.chartfx.com > > Link to comment Share on other sites More sharing options...
Software FX Posted November 30, 2006 Report Share Posted November 30, 2006 This is a bug. I entered it into our BUG KB, please contact Software FX Support in order to receive follow-ups on this and obtain a HotFix as soon as it becomes available. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 1, 2006 Author Report Share Posted December 1, 2006 Thanks. "Software FX" <noreply@softwarefx.com> wrote in message news:56LhKvMFHHA.1948@webserver3.softwarefx.com... > This is a bug. I entered it into our BUG KB, please contact Software FX > Support in order to receive follow-ups on this and obtain a HotFix as soon > as it becomes available. > > -- > Francisco Padron > www.chartfx.com > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.