Topic
  • 4 replies
  • Latest Post - ‏2012-02-28T16:36:23Z by bschooly
bschooly
bschooly
30 Posts

Pinned topic Using custom IlvChartDataInteractor with IlvChartCSSCustomizerPanel -JViews

‏2012-02-20T15:21:19Z |
I have written a interactor that moves an entire series (code taken
from IlvChartEditPointInteractor). Works well, however whenever a
setting is made via a customizer panel, I can no longer select a
series and move it; The interactor seems to be dropped from the chart.

Can anyone explain what is going on here? Is there a work around?
Updated on 2012-02-28T16:36:23Z at 2012-02-28T16:36:23Z by bschooly
  • bschooly
    bschooly
    30 Posts

    Re: Using custom IlvChartDataInteractor with IlvChartCSSCustomizerPanel -JViews

    ‏2012-02-20T22:24:50Z  
    I have confirmed that the interactor is removed from the chart.

    I tried customizing the customizer by removing all the settings for
    interactors. That succeeded in removing those options from the
    IlvChartCSSCustomizerPanel but it otherwise had no effect. So my
    problem is still with me.

    Right now, all I can think to do is to listen for change events and
    add back my interactor. There must be a better way.

    By the way the documentation for customizing the xml used by the
    customizer fails to mention that you have to have the corresponding
    properties file in the same directory as the modified xml.
  • slowhand
    slowhand
    113 Posts

    Re: Using custom IlvChartDataInteractor with IlvChartCSSCustomizerPanel -JViews

    ‏2012-02-22T15:38:02Z  
    • bschooly
    • ‏2012-02-20T22:24:50Z
    I have confirmed that the interactor is removed from the chart.

    I tried customizing the customizer by removing all the settings for
    interactors. That succeeded in removing those options from the
    IlvChartCSSCustomizerPanel but it otherwise had no effect. So my
    problem is still with me.

    Right now, all I can think to do is to listen for change events and
    add back my interactor. There must be a better way.

    By the way the documentation for customizing the xml used by the
    customizer fails to mention that you have to have the corresponding
    properties file in the same directory as the modified xml.
    > I have written a interactor that moves an entire series (code taken
    > from IlvChartEditPointInteractor). Works well, however whenever a
    > setting is made via a customizer panel, I can no longer select a
    > series and move it; The interactor seems to be dropped from the chart.

    Indeed, when a change is made through the customizer panel, a new CSS
    styling is applied to the chart. Since interactors are part of CSS styling,
    this will erase interactors that have been set through the API. This
    is unfortunately a limitation, documented in
    http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrcompcharts4037.html

    > By the way the documentation for customizing the xml used by the
    > customizer fails to mention that you have to have the corresponding
    > properties file in the same directory as the modified xml.

    This was meant to be implicit in the description of the setConfigFileBaseURL
    method, in
    http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrextcharts4182.html
    Sorry if the text is not explicit enough.

    --slowhand
  • bschooly
    bschooly
    30 Posts

    Re: Using custom IlvChartDataInteractor with IlvChartCSSCustomizerPanel -JViews

    ‏2012-02-22T15:54:09Z  
    • slowhand
    • ‏2012-02-22T15:38:02Z
    > I have written a interactor that moves an entire series (code taken
    > from IlvChartEditPointInteractor). Works well, however whenever a
    > setting is made via a customizer panel, I can no longer select a
    > series and move it; The interactor seems to be dropped from the chart.

    Indeed, when a change is made through the customizer panel, a new CSS
    styling is applied to the chart. Since interactors are part of CSS styling,
    this will erase interactors that have been set through the API. This
    is unfortunately a limitation, documented in
    http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrcompcharts4037.html

    > By the way the documentation for customizing the xml used by the
    > customizer fails to mention that you have to have the corresponding
    > properties file in the same directory as the modified xml.

    This was meant to be implicit in the description of the setConfigFileBaseURL
    method, in
    http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrextcharts4182.html
    Sorry if the text is not explicit enough.

    --slowhand
    > slowhand wrote:
    > > I have written a interactor that moves an entire series (code taken
    > > from IlvChartEditPointInteractor). Works well, however whenever a
    > > setting is made via a customizer panel, I can no longer select a
    > > series and move it; The interactor seems to be dropped from the chart.
    >
    > Indeed, when a change is made through the customizer panel, a new CSS
    > styling is applied to the chart. Since interactors are part of CSS styling,
    > this will erase interactors that have been set through the API. This
    > is unfortunately a limitation, documented in
    > http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrcompcharts4037.html

    Is there no way to limit what is styled via the customizers? If you change anything via a customizer
    panel, the interactors (and I guess everything else) are reset. I did remove the interactors via the xml file
    but that didn't work.

    I suppose another way to solve this is to somehow make the CSS aware of my new interactor. Do you know how I
    would go about doing this?

    >
    > > By the way the documentation for customizing the xml used by the
    > > customizer fails to mention that you have to have the corresponding
    > > properties file in the same directory as the modified xml.
    >
    > This was meant to be implicit in the description of the setConfigFileBaseURL
    > method, in
    > http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrextcharts4182.html
    > Sorry if the text is not explicit enough.
    >

    No worries, but I would suggest that this be fixed. It isn't obvious at all. The error you get won't help much either.
    I got lucky and stumbled into the solution.

    > --slowhand
  • bschooly
    bschooly
    30 Posts

    Re: Using custom IlvChartDataInteractor with IlvChartCSSCustomizerPanel -JViews

    ‏2012-02-28T16:36:23Z  
    • bschooly
    • ‏2012-02-22T15:54:09Z
    > slowhand wrote:
    > > I have written a interactor that moves an entire series (code taken
    > > from IlvChartEditPointInteractor). Works well, however whenever a
    > > setting is made via a customizer panel, I can no longer select a
    > > series and move it; The interactor seems to be dropped from the chart.
    >
    > Indeed, when a change is made through the customizer panel, a new CSS
    > styling is applied to the chart. Since interactors are part of CSS styling,
    > this will erase interactors that have been set through the API. This
    > is unfortunately a limitation, documented in
    > http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrcompcharts4037.html

    Is there no way to limit what is styled via the customizers? If you change anything via a customizer
    panel, the interactors (and I guess everything else) are reset. I did remove the interactors via the xml file
    but that didn't work.

    I suppose another way to solve this is to somehow make the CSS aware of my new interactor. Do you know how I
    would go about doing this?

    >
    > > By the way the documentation for customizing the xml used by the
    > > customizer fails to mention that you have to have the corresponding
    > > properties file in the same directory as the modified xml.
    >
    > This was meant to be implicit in the description of the setConfigFileBaseURL
    > method, in
    > http://publib.boulder.ibm.com/infocenter/jviewent/v8r8/index.jsp?topic=%2Fcom.ibm.ilog.jviews.charts.doc%2FContent%2FVisualization%2FDocumentation%2FJViews%2FJViews_PPA%2FJViews_Enterprise%2F_pubskel%2Fps_usrextcharts4182.html
    > Sorry if the text is not explicit enough.
    >

    No worries, but I would suggest that this be fixed. It isn't obvious at all. The error you get won't help much either.
    I got lucky and stumbled into the solution.

    > --slowhand
    This problem ceased once I stopped using multiple customizers at once on a
    chart withing my application.