mathix420 / notion-charts Goto Github PK
View Code? Open in Web Editor NEWCreate stunning charts for your notion.so databases
Home Page: https://charts.mathix.ninja
License: MIT License
Create stunning charts for your notion.so databases
Home Page: https://charts.mathix.ninja
License: MIT License
In Vercel I can see the following in the realt-time log. Checked to see if the Token_V2 was set according to the one in the cookie and it is identical. So I'm at a loss how to debug this any further.
[GET] /notion-schema/1e697f54ab3f492f89ebed37ee.../7a0a2021487b44c6aab7a975806...
16:00:06:44
init
using Web Server Gateway Interface (WSGI)
[ERROR] 2022-08-23T14:00:09.804Z ec95284d-... Got 400 error attempting to POST to queryCollection, with data: {
"collection": {
"id": "59d952a6-7796-...",
"spaceId": "8921877a-..."
},
"collectionView": {
"id": "7a0a2021-487b-...",
"spaceId": "8921877a-...
},
"loader": {
"filter": [],
"reducers": {
"collection_group_results": {
"limit": 100000,
"type": "results"
}
},
"searchQuery": "",
"sort": [
{
"property": "j?M]",
"direction": "ascending"
}
],
"userTimeZone": "UTC",
"type": "reducer"
}
}
Traceback (most recent call last):
File "/var/task/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/var/task/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "./api/main.py", line 140, in get_schema
rows = cv.default_query().execute()
File "/var/task/notion/collection.py", line 410, in execute
self._client.query_collection(
File "/var/task/notion/client.py", line 294, in query_collection
return self._store.call_query_collection(*args, **kwargs)
File "/var/task/notion/store.py", line 350, in call_query_collection
response = self._client.post("queryCollection", data).json()
File "/var/task/notion/client.py", line 260, in post
raise HTTPError(
requests.exceptions.HTTPError: Something went wrong.
Can you add a refresh button? This way I don’t need to refresh the entire concept page after updating the data
Thanks in advance
It shows error below:
{
error: "Invalid input."
}
even the demo in README.md...QQ
Tried this out today using the https://notion-charts.now.sh
URL and pasting in my Notion page which has a database on it, but it just returned an Internal Server Error.
As #1 as pointed out, Google charts image API is deprecated and is about to going down.
It need to be replaced asap
Hey, I've been trying to create charts for one of my personal Notion tables but the page keeps loading and doesn't show any results.
The page where I have my table is this one: https://pealecrim.notion.site/ca7692959bf045d786e92d3b6a126cea?v=5068fa00f41246688ed944ecaff1eded
It's already configured as visible to others and I even tried using a different link to it, like the one below: https://www.notion.so/pealecrim/ca7692959bf045d786e92d3b6a126cea?v=5068fa00f41246688ed944ecaff1eded
Am I doing something wrong?
Originally posted by Ravie13 March 18, 2022
Hi there - this looks like just the code I need!
I followed the directions for a private notion page and ran it but I'm getting errors in the console. I'm wondering if it is because of the recent Notion Database updates?
Failed to load resource: the server responded with a status of 500 ()
(index):203 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')
at (index):203:34
At that index in the code this is the function:
json.columns.map(function (column) {
const opt = document.createElement('option');
opt.innerText = column.name;
opt.value = column.id;
return opt;
}).forEach(function (child) {
fields.appendChild(child);
firstColumnSav = firstColumn.cloneNode(true);
firstColumnSav.querySelector('input').value = '';
});
```</div>
All the examples on the repo return this value to me when using the latest firefox, chrome or edge on windows 10.
No matter what chart I try, I keep on seeing this error on my charts.
{"error":"'<' not supported between instances of 'NoneType' and 'str'"}
Could you implement an automatic dark mode, based on the css media query like this?
https://fjolt.com/article/css-auto-dark-mode
Thanks in advance
May need to build an authentication system
Hello! First of all, thank you for creating this awesome feature.
I've just deployed my Vercel here - https://dashboard-notion.vercel.app/
But whenever I paste a URL from a database, I get 404 errors. What should I be doing?
Thank you in advance!
Noticed that Advanced columns can't be read such as roll ups & relations. Not sure if it's possible.
I'll try to contribute if I have time.
Btw Great product! Helps me do what I wanted to do. Thank you!
Sadly the build failed on vercel for me with the following message:
Error: Command failed: pip3 install --disable-pip-version-check --target . --upgrade -r /vercel/6c259a13/requirements.txt
Have you an idea what's the problem with that?
Hi, sorry if this is covered somewhere but I didn't see it:
Is there a way to change the label of "Default view" on the svg charts?
On a fresh installation on Vercel with the correct token, I’m getting these error messages in the function log:
[GET] /notion-schema/[…]/[…]
module initialization error: input(): lost sys.stdin
module initialization error
input(): lost sys.stdin
The app returns the error code 500. This happens right after a URL is entered in the Notion URL
form field, with both your examples and table URLs from the Notion account linked via the token. I’m stumped – do you have any idea what could be happening here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.