-
Notifications
You must be signed in to change notification settings - Fork 6
Several changes and new features #2
base: master
Are you sure you want to change the base?
Conversation
Hey @nfsprodriver, many thanks for your contribution! |
Moved your changes into |
As pylint failed, I took a look into So the frontend should specify the data it wants to update. This could be done within the JSON like so:
var request_data = {
date: currentDay
requested_data: {
day = true,
month = true,
year = false,
years = false,
total = false
}
}; Then the backend builds the response JSON only with the requested data. OR My preferred solution would be to have several API endpoints for the different data entities. So that the frontend no longer requests to
For initial loading there could be a |
Thanks @philipptrenz for the fast answer. For now, I don't have any idea for more features, which are necessary in the PR, so I'd like to feature freeze it. |
Did you mean like this 8dca723 ? |
One little thing: In the total chart the first year is cut off a little bit. May we add the year before first data on X-axis or do you have a better idea? |
Found the following issues:
Yeah, this can be changed by manipulating the from and to values of the chart, like within the following lines: // update scale
all.tot.interval.from = moment.unix(all.tot.interval.from).subtract('months', ???);
all.tot.interval.to = moment.unix(all.tot.interval.to).add('months', ???);
totChart.data.labels = [
all.tot.interval.from,
all.tot.interval.to
]; |
About the conformidity, pylint does not only detects my lines as unconfirm. Can you explain, what you mean? I'm very new to this topic. |
This is a proposal, which you could have meant a6b54dd |
This pull request may not be finished yet, so @philipptrenz please add your comments or contribute (in a new branch would be best).
Overview of changes in this pull request:
When some changes are missing, I'll add these to the changelog.