Git Product home page Git Product logo

iguanacharts's Introduction

iguanaChart

IguanaCharts is HTML5 jQuery Stock Charts library

You can download our open source library and setup powerful stock chart just in minutes.

Demo and docs

http://iguanacharts.com/

Examples

<div class="iChart" style="height: 550px; width: 1000px"></div>

<script type="text/javascript">
    iChartDataSource.host = "https://beta.tradernet.ru";

    $('.iChart').iguanaChart(
        {
            ticker: "AAPL.US",
            date_from: "01.01.2015",
            date_to: "01.01.2016",
            lib_path: "/scripts/iguanachart/",
            chartOptions: {
                minHeight: 500,
                uiTools: {top: true}
            },
            dataSource: $.extend(true, {}, iChartDataSource)
        }
    );
</script>

Installation

Download from

https://github.com/iguanaChart/iguanacharts/archive/master.zip

Or

git clone https://github.com/iguanaChart/iguanacharts.git

    <link rel="stylesheet" href="/iguanachart/iguanachart.min.css" media="all">
    <script type="text/javascript" src="/iguanachart/iguanachart.min.js"></script>

Dependencies

You can download all needed dependence from https://github.com/iguanaChart/dependencies/archive/master.zip

####Including dependencies example

    <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>

    <link rel="stylesheet" href="/dependencies/uikit/css/uikit.min.css" media="all">
    <script type="text/javascript" src="/dependencies/uikit/js/uikit.min.js"></script>

    <script type="text/javascript" src="/dependencies/jquery.event.move.js"></script>
    <script type="text/javascript" src="/dependencies/jquery.mousewheel.min.js"></script>
    <script type="text/javascript" src="/dependencies/hammer.min.js"></script>
    <script type="text/javascript" src="/dependencies/jquery.hammer.js"></script>
    <script type="text/javascript" src="/dependencies/jsrender.min.js"></script>

    <link rel="stylesheet" href="/dependencies/jquery.qtip.min.css" media="all">
    <script type="text/javascript" src="/dependencies/jquery.qtip.min.js"></script>

    <link rel="stylesheet" href="/dependencies/jquery-minicolors/jquery.minicolors.css" media="all">
    <script type="text/javascript" src="/dependencies/jquery-minicolors/jquery.minicolors.min.js"></script>

require config

        require.config({
            paths: {
                jquery: 'https://code.jquery.com/jquery-1.12.4.min',
                uikit: '/dependencies/uikit/js/uikit.min',
                'jquery.eventmove': '/dependencies/jquery.event.move',
                'jquery.hammer': '/dependencies/jquery.hammer',
                'jsrender': "/dependencies/jsrender.min",
                'jquery.minicolors': '/dependencies/jquery-minicolors/jquery.minicolors.min',
                'jquery.qtip': '/dependencies/jquery.qtip.min',
                'iguanachart': '/dist/iguanachart',
                'hammerjs': '/dependencies/hammer.min'
            },
            shim: {
                'uikit': {
                    deps: [
                        'jquery'
                    ]
                },
                jsrender: {
                    deps: [
                        'jquery'
                    ]
                },
                iguanachart: {
                    deps: [
                        'jquery',
                        'uikit',
                        'jquery.eventmove',
                        'jquery.hammer',
                        'jsrender',
                        'jquery.minicolors',
                        'jquery.qtip'
                    ]
                }
            }
        })

License

License

iguanacharts's People

Contributors

dependabot[bot] avatar gti360 avatar iguanachart avatar iliasidash avatar playtachok avatar tradernet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iguanacharts's Issues

i18n.en.js missing keys

It seems some keys were missing in any i18n files.

I add missing month's names.
Here is the code.

{
    "3502": "Jan",
    "3503": "Feb",
    "3504": "Mar",
    "3505": "Apr",
    "4939": "May",
    "3507": "Jun",
    "3508": "Jul",
    "3509": "Aug",
    "3510": "Sep",
    "3511": "Oct",
    "3512": "Nov",
    "3513": "Dec",
}

Resolution low on hi-dpi screen

I have a hi-dpi screen and the canvas resolution is really low.

I know this is a canvas problem and easily fixed by scaling the canvas to double, then halving it with css styling. But I could not properly do it without breaking the chart.

Example code:
`canvas.width = 2000;

canvas.height = 2000;

canvas.style.width = "1000px";

canvas.style.height = "1000px";`

Facing a error on chart loading

Chart initially working fine, but now its does't load and show this error on web console.

iguanacharts.com/iguana_charts/dependencies/uikit/css/uikit.min.css:1
Failed to load resource: net::ERR_CONNECTION_REFUSED

Uploading image.png…

License issues

Why is there custom license? Can you just include Apache/BSD/MIT license? I am allowed to distribute the code at all or not? I don't understand.

Btw, you can't call the code open-source if there is license not approved by the Open Source Initiative.

Release code under Apache/MIT license, please.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.