Code Monkey home page Code Monkey logo

vue-calendar-heatmap's People

Contributors

julienr114 avatar jwigley avatar mtfum avatar natescarlet avatar thomasleveil 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-calendar-heatmap's Issues

Licence does not exist

Hello,

I'm glad to see that someone else has done it before I design and code github-like heatmap calendar. But unfortunately this repository has no licence and does not represent anything about usage. If you ever relase it under M.I.T. licence, I'd be happy to have your code in my open-source project github.com/ikidnapmyself/vision

Cosmic regards!

Make tooltip message customizable

Hello

By default the tooltip message consists of day.count and intensity. it will be cool if the message is customizable (at least on the first part)

Thanks

map for future calendar

the caledar cant display future day. the calendar only show the day < now.
screen shot 2018-11-13 at 02 01 54

i try to fork your github and change
v-if="day.date < now"
to

v-if="day.date >= now"
but still not working

Missing required prop: "endDate"

Vuejs 2.5.17 on Firefox & Chromium

minimal example

<!DOCTYPE html>
<html>
  <meta charset="UTF-8"> 
<head>
  <title>Welcome to my Heatmap</title>
  <script src="./vue.js"></script>
  <link rel="stylesheet" href="./vue-calendar-heatmap.css"/>
  <script src="./vue-calendar-heatmap.browser.js"></script>
</head>
<body>
  <div id="app">
    <calendar-heatmap :endDate="today" :values="values"/>
  </div>
  <script>
      
    new Vue({
      el: '#app',
      components: {
        VueCalendarHeatmap
      },
      data: {
        today: new Date(),
        values: [{ date: '2018-09-22', count: 6 }]
      },
    });
    
  </script>
</body>
</html>

It doesn't matter how I pass endDate through the component. :endDate="2018-09-11" or endDate="2018-09-11" also failed with the same message.

However, when I change the endDate property like this

diff --git a/src/components/CalendarHeatmap.vue b/src/components/CalendarHeatmap.vue
index 18cde00..5460d4e 100644
--- a/src/components/CalendarHeatmap.vue
+++ b/src/components/CalendarHeatmap.vue
@@ -72,7 +72,7 @@ export default {

   props: {
     endDate: {
-      required: true
+      default: new Date()
     },
     max: {
       type: Number

and re-run npm run build:browser, I receive another error message

[Vue warn]: Invalid default value for prop "endDate": Props with type Object/Array must use a factory function to return the default value.

But vue dev tools shows that endDate is a correct date object.

enddate

So I've absolutely now idea how to use this component correctly. Any hints?

about import

when i add import VueCalendarHeatmap from 'vue-calendar-heatmap in main.js,
it warn me
can not find module “vue-calendar-heatmap” declare file。“d:/learn-game-ui/ruoyi-ui/node_modules/vue-calendar-heatmap/dist/vue-calendar-heatmap.common.js”隐式拥有 "any" 类型。 尝试使用 npm i --save-dev @types/vue-calendar-heatmap(如果存在),或者添加一个包含declare module 'vue-calendar-heatmap'; 的新声明(.d.ts)文件ts(7016)

Clickable Content

is there any way to call each day on the calendar? I try to use @click but nothing happened in my called function. Please add it onClick props for certain needs

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.