Jump to content
JChartFX Community

PhilHannent

Members
  • Posts

    26
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by PhilHannent

  1. A little progress has been made, since I posted that I found out that I needed to add more of the JavaScript files to the html.  This has enabled some but not all charts to start functioning, my example still fails with:

    • Area Curve
    • Candlestick
    • Open High Low Close
    • High Low Close
    • Pareto
    • Contour

    And Pyramid is only showing the second series pyramid...

  2. You might need to look at the FAQ:

    http://www.jchartfx.com/faq

    Which reads:

    How do I get rid of the jChartFX logo and link displayed in the chart area?


    The
    jChartFX commercial FREE license displays a non-disruptive jChartFX
    logo/link in the chart area. You may not modify or remove any copyright
    notices from any of the jChartFX files or reverse engineer jChartFX so
    this logo does not appear.


    If you want to remove this logo from your application or web site,
    you need to buy a Studio FX Premium Subscription and self-generate a
    jChartFX license string for up to 4 different applications and domains.
    This license string can then be passed to jChartFX by code. Please refer
    to our knowledgebase articles for more information on using jChartFX
    license strings.


    ***Please note a Studio FX Premium Subscription does
    not entitle you to a commercial OEM license or royalty free distribution
    of jChartFX. If you are building a commercial application or service
    that requires jChartFX redistribution you are encouraged to contact
    Software FX at sales@softwarefx.com for additional information on our OEM licensing arrangements.

     

    WindowsApplication1.zip

  3. Thank you JuanC.

    In case it helps others this is my correct function:

    function chartCumulativeToggle() {
        if (!aDataCumulativeSet) {
            aDataCumulativeSet = true;
            for(var i=0; i < chart1.getData().getSeries();i++){
                var AddPoints = 0;
                for(var j = 0; j < chart1.getData().getPoints();j++) {
                    AddPoints += chart1.getData().getItem(i, j);
                    chart1.getData().setItem(i, j, AddPoints);
                }
            }
        } else {
            aDataCumulativeSet = false;
            chart1.setDataSource(aData);
        }
    }

    WindowsApplication1.zip

  4. Good afternoon,

    Thanks for the reply, looks like I was very close with my code.  Your second sentence about getting the points is a little too general for me.  I need the number of points within a specific series for my loops to work.  Getting the total number of points wouldn't work.  How can I get the number of points for the given series?

    Many thanks

    Phil

  5. Hi,

    I would like to adjust the charts height after it has been drawn.  For example, if I output a chart and the user decided that the x axis labels were making the chart unreadable.  Then I want to offer a text box that resizes the containing div and then gets the chart repainted into it.  However the best I can get is that the chart is created as I want it however an old chart pane is visible but empty.

    This is the code I am currently using:

    function setHeightOfChart() {
        document.getElementById("ChartDiv1").style.height = ($(window).innerHeight() * (document.getElementById("CHARTDEPTH").value / 100)) + "px";
        chart1.updateSizeNow();
        chart1.create(document.getElementById("ChartDiv1"));
    }

     

     

    • Like 1
  6.  Further to my earlier post, this is the function I am trying to create:

    function chartCumulativeToggle() {
        if (!aDataCumulativeSet) {
            aDataCumulativeSet = true;
            //TODO: Figure out how to get the count of series
            for(var i=0; i < chart1.getData().getSeries();i++){
                var AddPoints = 0;
                //TODO: Figure out how to get the count of points in this series
                for(var j = 0; j < chart1.getSeries(i).getPoints();j++) {
                    //TODO: Figure out how to get the current value
                    AddPoints =+ chart1.getItem(i, j);
                    chart1.getData().getX().setItem(i, j, AddPoints);
                }
            }
        } else {
            aDataCumulativeSet = false;
            chart1.setDataSource(aData);
        }
        chart1.recalculateScale();
    }

    RealTimeCharts.zip

  7. Hi,

    Thanks for all the help in the past.  I don't write thanks posts as they add no real value.

    I am looking to create a toggle for changing the chart to be cumulative.  In your documentation you talk about setting the values:

    http://www.jchartfx.com/api/DataValues/X

    However there is no demonstration or documentation on how I can loop over each series and each point by knowing the length of each.  Could you provide information on how I can iterate over the data?

    Many thanks

    Phil

  8. Hi,

    I need to show and hide the chart title via a client side call.  However I cannot find information on how to achieve this.

    I found the getTitles() function call, however the only demonstrated examples are adding a title.  How do I manipulate an existing title?

    Regards

    Phil

×
×
  • Create New...