paulguz
Members-
Content count
16 -
Joined
-
Last visited
About paulguz
-
Rank
Junior Member
Profile Information
-
Gender
Male
-
Location
Edinburgh, Scotland
-
Hi, We have a requirement to programmatically highlight a chart element (e.g. a bar or pie slice), as happens when rolling over, without re-rendering the chart. Please consider providing a function to perform the highlight as currently happens on rollover. Many thanks, Paul
-
Yes, as you suggest, you can use the dataPlotClick and slicing events in tandem to get all the information required. However, it would make sense, and be simpler, to provide the index in the slicingEvents also. Thanks, Paul
- 3 replies
-
- slicingStart
- slicingEnd
-
(and 2 more)
Tagged with:
-
Hi, When the mouse is moved over part of a chart (e.g. a bar in a bar chart, a slice of a pie), that part is highlighted. In our collaboration tool, we'd like to replicate that highlighting in the collaborator's browser. Is there a way to programmatically highlight a part of a chart? I see the dataplotRollover event allows the capturing of the rollover, but I don't see any command to perform the highlighting. Thanks, Paul
-
Correction: the value is always the initial state of the slice, rather than the state at the time of the click. Is this intended behaviour? If so, that's not intuitive - I expect the values to be that at the time of clicking.
-
Swarnam, Yes, isSliced in dataPlotClick does not seem to report the sliced state at the time of clicking, only the initial state of the slice. I need to know the state immediately after the click, hence my use of slicingStart and slicingEnd. My solution to getting the index is to store the state of all slices in slicingStart, then compare with the states in slicingEnd. See my post in General Usage. However, providing the index in slicingStart and slicingEnd would remove the need for this. Please include this in the future.
-
Does that version have setCurrentRenderer("javascript")?
-
Hi, In the arguments to slicingStart and slicingEnd, please provide the index of the slice. Currently I have to manually compare the state of the chart at the start and end of the slice to determine this. The index is required to call slicePlotItem. Paul
- 3 replies
-
- slicingStart
- slicingEnd
-
(and 2 more)
Tagged with:
-
A simple solution (albeit one which shouldn't be necessary) is to compare the chart's slices at the start and end of the slice, and find the slice that changed, like so: var chartSliceStateStart = []; //the state of the chart's slices before slicing var chartSliceStateEnd = []; //the state of the chart's slices after slicing FusionCharts.addEventListener('slicingStart', function (event, args) { chartSliceStateStart = []; for (var i=0; i < event.sender.getJSONData().data.length; i++) { chartSliceStateStart.push(event.sender.isPlotItemSliced(i)); } }); FusionCharts.addEventListener('slicingEnd', function (event, args) { callServerHub(function () { var sliceIndex = 0; var clickedSliceFound = false; chartSliceStateEnd = []; for (var i = 0; i < event.sender.getJSONData().data.length; i++) { chartSliceStateEnd.push(event.sender.isPlotItemSliced(i)); } var i =0; while (!clickedSliceFound && i < chartSliceStateStart.length) { clickedSliceFound = chartSliceStateStart[i] != chartSliceStateEnd[i]; sliceIndex = i; i++; } if (clickedSliceFound) { // do something with sliceIndex } }); });
- 4 replies
-
- slicePlotItem
- slicing
-
(and 2 more)
Tagged with:
-
Thanks Nabajeet, The problem with that event is that the 'isSliced' property of argObj is always false. See http://jsfiddle.net/b533S/5/. I note that this property isn't documented, so it maybe isn't quite a bug. Paul
- 4 replies
-
- slicePlotItem
- slicing
-
(and 2 more)
Tagged with:
-
Hi, In v3.4, In the args passed to dataplotClick, the value of isSliced is always false. http://jsfiddle.net/b533S/5/ Paul
-
Thanks Nabajeet, The problem with that event is that the 'isSliced' property of argObj is always false. See http://jsfiddle.net/b533S/5/. I note that this property isn't documented, so it maybe isn't quite a bug. Paul
-
Hi, In the rotationEnd event of a chart, the arguments given are 'startingAngle' and 'changeInAngle'. As the former parameter actually gives the angle at completion, In the context of rotationEnd, a better name would be 'endingAngle'. I was under the brief misapprehension that 'startingAngle' here meant the original angle before the rotation. It doesn't make sense to call it 'startingAngle' here. Indeed, the function to set the angle of a chart is also called 'startingAngle()' - why not just 'angle()'? Paul
-
(Apologies for the repost; I think I originally had this in the wrong subforum) Hi, In my collaboration tool, I need to capture the slice event and programatically slice the same chart on a different browser. The function slicePlotItem() requires an index for the data item to be sliced, but the data argument of slicingStart (or slicingEnd) does not contain this index. How do you suggest determining the index of the sliced data? Thanks, Paul
- 4 replies
-
- slicePlotItem
- slicing
-
(and 2 more)
Tagged with:
-
Hi, In my collaboration tool, I need to capture the slice event and programatically slice the same chart on a different browser. The function slicePlotItem() requires an index for the data item to be sliced, but the data argument of slicingStart (or slicingEnd) does not contain this index. How do you suggest determining the index of the sliced data? Thanks, Paul
-
Cannot call method 'call' of undefined - confilict with draggables
paulguz replied to paulguz's topic in Bug Reports
Excellent, thanks very much for the swift resolution.