Comments (8)
Found the issues after some tests, you have to use in your data object
y: d => +d['energylevel'],
Seems like data imported from CSV are string and not number, will investigate
from cal-heatmap.
The extra casting to int or float is indeed needed when importing from other source than JS array. Will update the docs to reflect that
from cal-heatmap.
from cal-heatmap.
If i download the loaded file from the Network tab, it downloads well. I am not sure about the "file loading correctly" part. How do i check that?
from cal-heatmap.
from cal-heatmap.
I see only the error for favicon file in the developer tools console tab. Nothing else.
Also, now i tried out launching a server using python under WSL (http://172.29.198.29:8000/). But the result is the same (no colors).
devp@IdeaPad:/mnt/d/24k_tracks$ python3 -m "http.server"
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
172.29.192.1 - - [20/Jan/2024 14:38:34] "GET / HTTP/1.1" 200 -
172.29.192.1 - - [20/Jan/2024 14:38:35] "GET /records/gym_track.csv HTTP/1.1" 200 -
172.29.192.1 - - [20/Jan/2024 14:38:35] code 404, message File not found
172.29.192.1 - - [20/Jan/2024 14:38:35] "GET /favicon.ico HTTP/1.1" 404 -
Here also, the csv file request gets completed.
from cal-heatmap.
I also tried to launch a CORS server through python. I don't think CORS is blocked.
#!/usr/bin/env python3
from http.server import HTTPServer, SimpleHTTPRequestHandler, test
import sys
class CORSRequestHandler (SimpleHTTPRequestHandler):
def end_headers (self):
self.send_header('Access-Control-Allow-Origin', '*')
SimpleHTTPRequestHandler.end_headers(self)
if __name__ == '__main__':
test(CORSRequestHandler, HTTPServer, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000)
from cal-heatmap.
It works well now! Thank you so much for such a quick response. I hope I can track my habits this year well :)
You may close the issue.
from cal-heatmap.
Related Issues (20)
- Year template goes wrong before the date 1894-01-01 HOT 1
- Not being able to adjust the calendar dimensions to 100% of its div based on the screen size HOT 1
- Resize calendar HOT 1
- Problem with timestamp and timezone HOT 6
- groupY median does not exist HOT 1
- Add custom subdomain classes
- Custom scales in CSS HOT 1
- React project using cal-heatmap and TypeScript cannot be built HOT 2
- Angular/Typescript typing issue HOT 3
- Commonjs export is not working HOT 1
- get other info from source data HOT 3
- Type is not correctly exported in
- Type is not correctly exported in "exports" HOT 1
- Could not find a declaration file for module 'cal-heatmap' HOT 3
- Hours subdomain is not honoring local browser time HOT 1
- New external plugins repositories HOT 1
- Error occurs when import plugin HOT 2
- How to hide the future days? HOT 3
- Full working code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cal-heatmap.