JSXGraph is a library for Interactive Geometry, function plotting and charts. A user interface to create geometric constructions is under development. At the moment, to display a construction the user can choose between this possibilities:



All objects of JSXGraph use the namespace JXG. Beside JXG there are no global variables.


  1. ZhangYi
    Posted January 3, 2010 at 11:54 am | Permalink

    i had try some example ,but have some prolblem on IE6 and IE7.

    • Posted January 3, 2010 at 1:14 pm | Permalink

      Which examples did not work on IE 6/7?

      • ZhangYi
        Posted January 13, 2010 at 7:41 am | Permalink
        • Posted January 13, 2010 at 2:54 pm | Permalink

          Thank you very much! The example contained the usual JavaScript bug which kills the IE:
          There was an array of the form [f1,f2,f3,];
          The IE has problems with the last comma.

          • ZhangYi
            Posted January 14, 2010 at 2:30 am | Permalink

            You are very efficient! sorry,my english is very poor.
            i want to ask : can i set the marked of X-axis and Y-axis,just like with date?

          • Posted January 14, 2010 at 2:08 pm | Permalink

            You probably can find information about setting axis ticks at
            Do you mind if we continue the discussion at the jsxgraph group at google groups:
            Best wishes,

          • ZhangYi
            Posted January 15, 2010 at 2:55 am | Permalink

            i want to join the group,but i can not open the website.may by our government allowed…..
            recently, i’am doing a project that need to use,do you mind tell me the number of your MSN.Many words, I do not know how to say,just Thank You!

  2. pength
    Posted January 15, 2010 at 3:55 am | Permalink

    hi, you can access the google group by using:

    (https, instead of http)

    btw, I am from China and I think Mr./Ms. Zhangyi too?

    • ZhangYi
      Posted January 15, 2010 at 1:35 pm | Permalink

      Thank You! i’am in.i come from china too!

  3. Guillermo
    Posted April 30, 2010 at 1:46 pm | Permalink

    JSXgraph is an very good utility ! Congratulations !

    I’ need, with a button, write in local file *.txt the x, y coordinates of ponints. If possible thes ? Thank you.

    • Posted May 2, 2010 at 9:09 pm | Permalink

      Probably not. Allowing JavaScript to write local files would be a huge security risc. But you have the options,
      1) to open a new window, write the coordinates into that window (using JavaScript) and ask the user to save the window.
      2) to send the coordinates with AJAX back to web server and the web server sends back a file (or a download link).

      You can something similar to 1) in:
      First click on “Read Geonext file” an then on “Show XML”.

      Hope, that helps,

  4. Michel Charite
    Posted November 11, 2011 at 1:33 pm | Permalink

    Hi, I’m trying to rotate text, but it seems to go wrong when keep aspect is disabled(and I need keep aspect disabled). Is there anything I can do?

    • Posted November 11, 2011 at 1:41 pm | Permalink

      Yes, one can do something. You can find a detailed explanation here:

      • Michel Charite
        Posted November 11, 2011 at 3:02 pm | Permalink

        Thank you for that. I have one more question:

        When I cut the axes(with straightFirst/straightLast = false) the grid will still keep going beyond the area plotted by those axes. Is there a way to stop this?

        • Posted November 11, 2011 at 5:42 pm | Permalink

          This is a missing feature. Thanks for pointing it out.

      • Michel Charite
        Posted November 11, 2011 at 3:31 pm | Permalink

        And another issue came up: the matrix transformation doesn’t seem to work for IE9 in IE7 or IE8 mode. Do I need an extension or something?

        • Posted November 11, 2011 at 5:41 pm | Permalink

          You are right, there seems to be a problem with “trace:true”. I tested it in IE 8. Had no chance to test it in IE9, yet.

      • Michel Charite
        Posted November 15, 2011 at 6:02 pm | Permalink

        Hey, I got more.

        How do I plot a reverse axis? (one where the negative numbers go up)

        The default behavior seems to be giving me positive values along the axis ticks.

        • Posted November 15, 2011 at 7:40 pm | Permalink

          Don’t use the default axes constructed by initBoard(…,{axis:true});
          Use instead
          board.create(‘axis’, [[0,0],[-1,0]]);
          Hope that helps,

          • Michel Charite
            Posted November 16, 2011 at 9:41 am | Permalink

            I’m already doing that, at it still bugs for me.

          • Michel Charite
            Posted November 16, 2011 at 9:41 am | Permalink


  5. Posted November 11, 2011 at 5:40 pm | Permalink

    This is a missing feature. Thank you for pointing it out.

  6. Michel Charite
    Posted November 21, 2011 at 11:57 am | Permalink

    Hello again, I added a feature request on the sourceforge tracker. I cannot seem to add it to Trac. Anyway, the feature request is about datetime support. I would really like to have it.

  7. gbmarali
    Posted February 16, 2012 at 8:18 am | Permalink

    how to download jsxgraph and then how to create graphs and i want to run on android tablet is it possible

  8. janneve
    Posted April 7, 2012 at 1:46 pm | Permalink


    i´m working on some applets using JSXGraph. And i am wondering wether there is any 3d-support being planed. For things like spherical coordinates or something like that.


  9. Posted October 29, 2012 at 3:18 am | Permalink

    Hi, i’m using this amazing framework for a school project… (Thanks for it)

    And I have two perpendicular axes, the thing is that in the intersection the labels of both axes overlap, I tried everything… I tried to set the offset property of ticks in axes, and set the drawZero: false option, but nothing seems to work.


  10. Jason
    Posted December 7, 2012 at 4:16 am | Permalink

    How do you get JXG to output Svg?

  11. Jack
    Posted January 29, 2013 at 6:14 am | Permalink

    How do I create a log-log or semi-log graph?

  • Archives