lavolp3 / MMM-AVStock

MagicMirror module for displaying stock price with yfinance API
MIT License
39 stars 18 forks source link

Positioning of the Graph and Table - mode:table #59

Closed Martin2K02 closed 3 years ago

Martin2K02 commented 3 years ago

How do I configure it just like that picture, that the table is above the graph? Because with "mode: table", the table is on the left side of the graph.

This is what I want: avstock-table

This is what I have now: image

lavolp3 commented 3 years ago

Try the config option

direction: 'column',

If that doesn't help you could try giving the module a fixed width in custom.css

#AVSTOCK {
  width: 500px
}
Martin2K02 commented 3 years ago

Thank You. Now It's in a position, that I wanted to have. image

But I have a question. Is it normal, that the value from the share is not exactly correct? Because officially right now It's on 2636,44 GBP and on the module It's 2612 GBP. When does it refresh the value?

lavolp3 commented 3 years ago

The reason is the API that is being used. Alphavantage currently only drops last days closing values and does not update for the day. I am working on using yahoofinance and close to publishing. For months now ..... And maybe forever....

Martin2K02 commented 3 years ago

Ok, I understand. Thank You.

Dann wünsche ich dir Viel Glück und hoffe dass es bald klappen wird und nochmals Danke für deine Hilfe.