Menu

Marker with Custom images

2011-11-18
2012-07-13
  • Shawn Quinn

    Shawn Quinn - 2011-11-18

    Can you try wrapping the path with "url()" like so:

    Point p1 = new Point(2, 71.8);
    Marker m = new Marker();
    m.setOption("symbol", "url(/serverpath/image.png)");
    p1.setMarker(m);
    

    And let us know if that does what you're looking for?

     
  • Shawn Quinn

    Shawn Quinn - 2011-11-18

    There isn't a direct wrapper provided method to manage the "lang" options via GWT Highcharts at this time, because the "lang" options are managed globally instead of per chart. So, you can either do something like the following in Javascript within your host file:

    Highcharts.setOptions({
        lang: {
            resetZoom: 'Hi There',
            resetZoomText: 'Click to reset'
        }
    });
    

    Or, if you wanted to stay in Java/GWT you could write a JSNI method that did the same. E.g. something like:

    public static native void setGlobalOptions() /*-{
        $wnd.Highcharts.setOptions({
            lang: {
                resetZoom: 'Hi There',
                resetZoomText: 'Click to reset'
            }
        });
    }-*/;
    

    I don't believe Highcharts currently provides for any additional configuration support over the display of the "reset" button though, other than the text of the button.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.