- You are here:
- Home
- Knowledge Base
- Helpful Information
- How do I default a graph to be open (or closed)?

^Back to Top

Financial Calculators , Mortgage Calculators: Fixed Mortgage, Adjustable Rate Mortgages ARM, Mortgage APR Calculators and More! Financial Calculators you can put on your website! Colorful, interactive, graphing financial calculators. Free downloads! Calculator Trial Period Ended For:, KJE Calculator License Not Found for:, Free Financial Calculators

To change this behavior on all of your installed calculators you need to edit the KJESiteSpecific.js file and add GRAPH_OPEN parameters. Set this parameter to true to have them default open and false to default close. The first graph is controlled by GRAPH_OPEN1, the second by GRAPH_OPEN2, etc. The lines below would default the first three graphs to be open:

KJE.parameters.set("GRAPH_OPEN1",true);

KJE.parameters.set("GRAPH_OPEN2",true);

KJE.parameters.set("GRAPH_OPEN3",true);

If a calculator had only two graphs, GRAPH_OPEN3 would be ignored.

You can also control the behavior of the graphs on a calculator by calculator basis by adding the code above to a specific calculators PARAMS file. For example, for the Mortgage Loan Calculator you would add these lines to the MortgageLoanParams.js file.