Share My Creation Coinwatch (Available on Macstore)

Discussion in 'B4J Share Your Creations' started by tufanv, Aug 6, 2017.

  1. tufanv

    tufanv Expert Licensed User

    Hello,

    Thanks to Erel and @JanPRO 's great tool , my app is on the mac store. It is a simple app to watch cryptocurrency prices easily and create your portfolio to follow total value .

    [​IMG]

    I put it on the app store for 3.99$ so not providing a link here but if someone wants to check the app I can send it for free .

    Regards
     
    Herbert32, Ohanian, jmon and 5 others like this.
  2. alwaysbusy

    alwaysbusy Expert Licensed User

    Nice clean layout. Well done!
     
    tufanv likes this.
  3. tufanv

    tufanv Expert Licensed User

    Thanks ,

    This is with the help of every member on this forum !

    Thanks to all.
     
    Beja likes this.
  4. tufanv

    tufanv Expert Licensed User

    new version is available which supports Bittrex API
    [​IMG]
     
    inakigarm and Cableguy like this.
  5. tufanv

    tufanv Expert Licensed User

    updated to v2
    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]
     
    jmon and Erel like this.
  6. elpic76

    elpic76 Member Licensed User

    Hi tufanv,
    congratulations for your app. Is it possible to have info about the charts?
    How do you implement them?
    Best Regards
     
  7. tufanv

    tufanv Expert Licensed User

    Hi,

    Of course , I used http://www.chartjs.org/ charts with webview. It is quite easy to implement. If you need a sample code, please post here and i will make a small sample.
     
    Johan Hormaza likes this.
  8. elpic76

    elpic76 Member Licensed User

    Hi tufanv,
    thanks for your time, I'd appreciate very much a sample code.
    Best Regards.
     
  9. tufanv

    tufanv Expert Licensed User

    Code:
    Dim jg As JSONGenerator
                    jg.Initialize2(listegrafik)
                    
    Dim jg2 As JSONGenerator
                    jg2.Initialize2(listetarihler)
                    
                    WebView1.LoadHtml(
    $"
                <canvas id="linechart" width=${
    WebView1.prefWidth-10dip} height=${WebView1.prefHeight-20dip}></canvas>
                <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.min.js"></script>
                <script>
                var ctx = document.getElementById("linechart");
                ctx.style.backgroundColor = 'rgba(255,255,255,255)';
    var linechart = new Chart(ctx,{
      type: 'line',
      data: {
        labels: ${
    jg2.ToString},
        datasets: [{
            data: ${
    jg.ToString},
            label: "$
    {l2}",
            borderColor: "rgba(255, 116, 0, 1)",
            fill: true,
            backgroundColor: "rgba(255, 116, 0, 0.7)"

          }
        ]
      },
      options: {
        responsive: false,
        animation: false,
        title: {
          display: false,
          text: 'World population per region (in millions)'
        }
      }
    });
    </script>
            "$
    )
    Listegrafik is the values for the data in this example ( y axis )
    and listetarihler is the dates for the data ( x axis )

    you can add random 5 values to those lists to test it
     
    Johan Hormaza likes this.
  10. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    It worked, but at any time the previous code stopped doing it:(
     
  11. tufanv

    tufanv Expert Licensed User

    what do you mean by stopped doing it ? can you give more details .?
     
  12. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    I solved it by loading the JavaScript file locally.
    Thank you.
     
    tufanv likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice