Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9217669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:41:03+00:00 2026-06-18T02:41:03+00:00

I am trying to display a candlestick with small values, but I cannot see

  • 0

I am trying to display a candlestick with small values, but I cannot see candles on the chart.

Here’s an example:

HTML:

<div class="graphs">
        <div id="chartEURUSDContainer" style="height: 331px; min-width: 611px"></div>
</div>


<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>

Javascript:

 $(function () {

        var jsonData = [{"LastModification":"04:18:45","Symbol":"EURUSD","Bid":"1.33132","Ask":"1.33157","High":"1.33336","Low":"1.33007","Direction":"0","InserTime":"\/Date(1358760060933)\/"},{"LastModification":"04:20:05","Symbol":"EURUSD","Bid":"1.33151","Ask":"1.33174","High":"1.33336","Low":"1.33007","Direction":"0","InserTime":"\/Date(1358760140625)\/"},{"LastModification":"04:21:25","Symbol":"EURUSD","Bid":"1.3312","Ask":"1.33144","High":"1.33336","Low":"1.33007","Direction":"1","InserTime":"\/Date(1358760220731)\/"},{"LastModification":"04:22:48","Symbol":"EURUSD","Bid":"1.33115","Ask":"1.33141","High":"1.33336","Low":"1.33007","Direction":"-1","InserTime":"\/Date(1358760300387)\/"},{"LastModification":"04:23:48","Symbol":"EURUSD","Bid":"1.33107","Ask":"1.33132","High":"1.33336","Low":"1.33007","Direction":"-1","InserTime":"\/Date(1358760361033)\/"},{"LastModification":"04:25:08","Symbol":"EURUSD","Bid":"1.33139","Ask":"1.33164","High":"1.33336","Low":"1.33007","Direction":"0","InserTime":"\/Date(1358760440193)\/"},{"LastModification":"04:26:28","Symbol":"EURUSD","Bid":"1.33202","Ask":"1.33222","High":"1.33336","Low":"1.33007","Direction":"1","InserTime":"\/Date(1358760520037)\/"},{"LastModification":"04:27:48","Symbol":"EURUSD","Bid":"1.33212","Ask":"1.33238","High":"1.33336","Low":"1.33007","Direction":"-1","InserTime":"\/Date(1358760600163)\/"}]

        var data = [];

        fillData();     

        function fillData() {
            for (i = 0; i < jsonData.length; i++) {
                data.push([
                    parseInt(jsonData[i].InserTime.substr(6)),
                    jsonData[i].Ask ,
                    jsonData[i].High ,
                    jsonData[i].Low ,
                    jsonData[i].Bid  
                    ]);
            }
            CreateChart();
        }

        function CreateChart() {         
        // create the chart
        chart = new Highcharts.StockChart({
            chart: {
                renderTo: 'chartEURUSDContainer',
                type: 'candlestick',
                marginRight: 10,                
            },
            rangeSelector : {
                enabled: false
            },      
            scrollbar : {
                enabled: false
            },            
            navigator : {
                enabled: false
            },
            series : [{
                type : 'candlestick',
                color: '#00FF00',
                name : 'Currency Rates',
                data : data,

            }]
        });
        }
    });

Live example on JS Fiddle.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:41:04+00:00Added an answer on June 18, 2026 at 2:41 am

    You should use parseFloat() to change string into number for Ask / High values.

    data.push([
             parseInt(jsonData[i].InserTime.substr(6)),
             parseFloat(jsonData[i].Ask),
             parseFloat(jsonData[i].High),
             parseFloat(jsonData[i].Low),
             parseFloat(jsonData[i].Bid)]);
    

    Here’s a full example:

    HTML:

    <div class="graphs">
        <div id="chartEURUSDContainer" style="height: 331px; min-width: 611px"></div>
    </div>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"
    type="text/javascript"></script>
    <script src="http://code.highcharts.com/stock/highstock.js"></script>
    <script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
    

    Javascript:

     $(function () {
    
         var jsonData = [{
             "LastModification": "04:18:45",
             "Symbol": "EURUSD",
             "Bid": "1.33132",
             "Ask": "1.33157",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "0",
             "InserTime": "\/Date(1358760060933)\/"
         }, {
             "LastModification": "04:20:05",
             "Symbol": "EURUSD",
             "Bid": "1.33151",
             "Ask": "1.33174",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "0",
             "InserTime": "\/Date(1358760140625)\/"
         }, {
             "LastModification": "04:21:25",
             "Symbol": "EURUSD",
             "Bid": "1.3312",
             "Ask": "1.33144",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "1",
             "InserTime": "\/Date(1358760220731)\/"
         }, {
             "LastModification": "04:22:48",
             "Symbol": "EURUSD",
             "Bid": "1.33115",
             "Ask": "1.33141",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "-1",
             "InserTime": "\/Date(1358760300387)\/"
         }, {
             "LastModification": "04:23:48",
             "Symbol": "EURUSD",
             "Bid": "1.33107",
             "Ask": "1.33132",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "-1",
             "InserTime": "\/Date(1358760361033)\/"
         }, {
             "LastModification": "04:25:08",
             "Symbol": "EURUSD",
             "Bid": "1.33139",
             "Ask": "1.33164",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "0",
             "InserTime": "\/Date(1358760440193)\/"
         }, {
             "LastModification": "04:26:28",
             "Symbol": "EURUSD",
             "Bid": "1.33202",
             "Ask": "1.33222",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "1",
             "InserTime": "\/Date(1358760520037)\/"
         }, {
             "LastModification": "04:27:48",
             "Symbol": "EURUSD",
             "Bid": "1.33212",
             "Ask": "1.33238",
             "High": "1.33336",
             "Low": "1.33007",
             "Direction": "-1",
             "InserTime": "\/Date(1358760600163)\/"
         }]
    
         var data = [];
    
         fillData();
    
         function fillData() {
             for (i = 0; i < jsonData.length; i++) {
                 data.push([
                 parseInt(jsonData[i].InserTime.substr(6)),
                 parseFloat(jsonData[i].Ask),
                 parseFloat(jsonData[i].High),
                 parseFloat(jsonData[i].Low),
                 parseFloat(jsonData[i].Bid)]);
     }
     CreateChart();
     }
    
     function CreateChart() {
         // create the chart
         chart = new Highcharts.StockChart({
             chart: {
                 renderTo: 'chartEURUSDContainer',
                 type: 'candlestick',
                 marginRight: 10,
             },
             rangeSelector: {
                 enabled: false
             },
             scrollbar: {
                 enabled: false
             },
             navigator: {
                 enabled: false
             },
             series: [{
                 type: 'candlestick',
                 color: '#00FF00',
                 name: 'Currency Rates',
                 data: data,
    
             }]
         });
     }
     });
    

    Demo on JS Fiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying do display my body onload in a div tag, but cant solve
I am trying to display all possible values for a sub-property. Below I am
Im trying to display text but that isnt working. I create a dynamic text
Im trying to display this listview, but I keep getting a: 07-17 21:14:22.233: ERROR/AndroidRuntime(349):
Im trying to display two list: one for categories and brand but only the
I am trying display values in a datagrid in my application. I have all
Im trying to display a random record from my table but with no luck
Trying to display a message if no results found in the search query. Here
Trying to display an image only for Android users, but I don't want to
Im trying to display a sample chart with some sample data, just followed one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.