lavolp3 / MMM-AVStock

MagicMirror module for displaying stock price with Alphavantage API
MIT License
38 stars 18 forks source link

disable Direction #42

Closed thymon13 closed 3 years ago

thymon13 commented 3 years ago

Hi !

Is it possible to disable the direction display ? And see only the graph

lavolp3 commented 3 years ago

yeah the function has somehow been "lost" during the latest updates. Try giving mode any other value, e.g. keep it empty

mode: "",

Let me know if it works. I can't test it right now. If it doesn't work, try setting mode: 'series'

thymon13 commented 3 years ago

nothing works...

'series' or any other value. Empty too

lavolp3 commented 3 years ago

Have you activated the chart? (should be by default)

showChart: true,
mode: '',

Or better, just post your config. :-)

I'll make it more clear in the README with the next update.

thymon13 commented 3 years ago
{
  module: "MMM-AVStock",
  position: "top_right",
  config: {
    apiKey : "XXXXXXXXXXXXX",
    coloredCandles : true,
         symbols : ["C40.PAR"],
    alias: ["CAC40"],
        mode : "table",
        direction: 'column',
        classes: 'xsmall',
        showChart: true,
        showVolume: false,
        showPurchasePrices: false,
        showPerformance2Purchase: false,
        chartDays: 30,
        width: 350,
        decimals: 2,
        poolInterval : 5 * 60 * 1000,
        tickerDuration: 5, // Ticker will be cycled once per this second.
        timeFormat: "DD-MM-YYYY HH:mm:ss",
  }
},
lavolp3 commented 3 years ago

using your config and only setting mode: '' works for me and shows only the graph image

Does the module work with above config? You have set mode:'table' there

Guandi303 commented 3 years ago

I think thymon13 meant that only the graph is showing and the blue boxes and the numbers on the right are gone

lavolp3 commented 3 years ago

@thymon13 can you give an update? Still something not working? Otherwise I'll close this.

lavolp3 commented 3 years ago

I think thymon13 meant that only the graph is showing and the blue boxes and the numbers on the right are gone

That's impossible with the latest update. Currently the blue boxes and numbers are hardcoded in JS.

lavolp3 commented 3 years ago

@thymon13 if @Guandi303 guessed right and you wanted to have a pure graph, that's possible now with the latest update. Please update and have a look at the Readme.