JavaScript How to customize a column chart in html

Currently i am using chart.js but not able to make chart like following

enter image description here

in which the bar is on the dotted line.

I used like this JSFIDDLE

Please suggest me some resource so that i can produce the exact copy

Following is the javascipt i am using

<canvas id="myChart" width="100" height="100" padding-right="20px"></canvas> 
     <script>
      var data = {
        labels: ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],
        datasets: [
            {
                label: "My First dataset",
                fillColor: "rgba(51,190,139,1)",
                strokeColor: "rgba(51,190,139,1)",
                highlightFill: "rgba(51,190,139,1)",
                highlightStroke: "rgba(51,190,139,1)",
                data:[1000,1250,750,1160,500,1500,850],
            }
        ]
      };

      var ctx = document.getElementById("myChart").getContext("2d");
      var myBarChart = new Chart(ctx).Bar(data,{
         responsive: true,
        barValueSpacing : 10,

      });

    </script>
Answer:1

I have code like: var addX = (e) => return e+1; I am calling like: [1,2,3].map(addX); Can I make "1" dynamic? Like: [1,2,3].map(addX(2)); //this wont work, in this case it should add 2

I have code like: var addX = (e) => return e+1; I am calling like: [1,2,3].map(addX); Can I make "1" dynamic? Like: [1,2,3].map(addX(2)); //this wont work, in this case it should add 2

  1. passing argument function c
  2. passing argument function php
  3. passing function argument java
  4. passing argument method java
  5. passing arguments to function in c++ in hindi
  6. passing argument to function in python
  7. passing argument javascript function
  8. passing argument to function in shell script
  9. passing pointer argument function c++
  10. passing argument to function bash
  11. passing argument to function in hindi
  12. passing argument to function pointer
  13. passing arguments onclick function
  14. passing arguments to shell function
  15. passing argument to function in powershell
  16. passing arguments in arrow function
  17. passing argument in main function c
  18. passing argument to pthread function
  19. passing arguments to a function in c language
  20. passing argument to thread function c++

I'm trying to test a service function in Angular where it receives a date and check if the date is a date in the future. If it is, it returns true. // The 'check_date' will always be in the format `...

I'm trying to test a service function in Angular where it receives a date and check if the date is a date in the future. If it is, it returns true. // The 'check_date' will always be in the format `...

  1. angular unit test service
  2. angular unit test click event
  3. angular unit test observable
  4. angular unit test ngoninit
  5. angular unit test mock service
  6. angular unit test behaviorsubject
  7. angular unit test subscribe
  8. angular unit test directive
  9. angular unit test httpclient
  10. angular unit test subject next
  11. angular unit test viewchild
  12. angular unit test pipe
  13. angular unit test mat dialog
  14. angular unit test tutorial
  15. angular unit test ngonchanges
  16. angular unit test formgroup
  17. angular unit test private methods
  18. angular unit test input
  19. angular unit test activatedroute
  20. angular unit test code coverage

I've some problems with my Edit function for editing my groups table. the fields are "group_id(primary key), cat_id(foreign key), group_name" I used the group_id as the identifier of which group ...

I've some problems with my Edit function for editing my groups table. the fields are "group_id(primary key), cat_id(foreign key), group_name" I used the group_id as the identifier of which group ...

I'm trying to use the jquery.data method to retrieve a bunch of item's IDs from a node server and save it for each item as an attr or data and use it later for updating the item. But the attribute ...

I'm trying to use the jquery.data method to retrieve a bunch of item's IDs from a node server and save it for each item as an attr or data and use it later for updating the item. But the attribute ...

  1. jquery data returning undefined
  2. jquery ajax return data
  3. jquery post not returning data
  4. jquery get not returning data
  5. jquery ajax not returning data
  6. jquery getjson not returning data