MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Avstock Graph is not displayed

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 17 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JeanMichelC
      last edited by

      Hi,
      I cannot get the graph to show on the screen. I tried various config but it didn’t work.
      I tried the default config, same issue.
      The ticket is showing up but not the graph.
      Thank you

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @JeanMichelC
        last edited by

        @JeanMichelC can you show the module config?

        Can you also open the developers console , ctrl-shift-i
        Select the console tab and put Avs in the filter field to see if there are any browser side errors

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JeanMichelC @sdetweil
          last edited by sdetweil

          @sdetweil
          I found the error
          Error: attribute viewBox: Expected number, “0 0 NaN 400”
          updateChart @ MMM-Avstock.js 588

          Config
          config: {
          			currencyStyle: "code", // One of ["code", "symbol", "name"]
          			fadeSpeedInSeconds: 3.5,
          			lastUpdateFormat: "HH:mm",
          			maxChangeAge: 1 * 24 * 60 * 60 * 1000,
          			maxWidth: "40%",
          			numberDecimalsPercentages: 1,
          			numberDecimalsValues: 2,
          			displayMode: "table", // One of ["none", "vertical", "horizontal", "table", "default-table"]
          			showColors: true,
          			showCurrency: true,
          			showChangePercent: true,
          			showChangeValue: false,
          			showChangeValueCurrency: false,
          			showHiddenStocks: false,
          			showLastUpdate: false,
          			showPortfolioValue: false,
          			showPortfolioGrowthPercent: false,
          			showPortfolioGrowth: false,
          			showPortfolioPerformanceValue: false,
          			showPortfolioPerformancePercent: false,
          			showStockPerformanceValue: false,
          			showStockPerformanceValueSum: false,
          			showStockPerformancePercent: false,
          			stocksPerPage: 20, // Only relevant for display mode "table"
          			updateIntervalInSeconds: 300,
          			useGrouping: false,
          			virtualHorizontalMultiplier: 2,
          
          J S 2 Replies Last reply Reply Quote 0
          • J Offline
            JeanMichelC @JeanMichelC
            last edited by sdetweil

            Sorry, I sent the wrong code for the config
            Here it is

            config: {
            				timeFormat: "DD-MM HH:mm",
            				width: "50%",
            				symbols : ["NFLX", "AAPL",],
            				alias: ["Netflix",  "Apple"],
            				tickerDuration: 20,
            				chartDays: 90,
            				maxTableRows: 5,
            				mode : "table",                  // "table" or "ticker"
            				direction: "row",
            				showChart: true,
            				pureLine: true,
            				chartWidth: "50%",
            				showVolume: true,
            				chartInterval: "daily",          // choose from ["intraday", "daily", "weekly", "monthly"]
            				decimals : 2,
            				chartType: 'line',                // 'line', 'candlestick', or 'ohlc'
            				alternateGridColor: '#223344',
            				chartLineColor: '#eee',
            				chartLabelColor: '#eee',
            				coloredCandles: true,
            				showPurchasePrices: true,
            				showPerformance2Purchase: true,
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @JeanMichelC
              last edited by

              @JeanMichelC looks like an api error not returning a number,
              I’d open an issue on the module page

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @JeanMichelC
                last edited by

                @JeanMichelC also, please use the code block around config or logs

                Paste the text into the editor, blank line above and below
                Select the text just pasted
                Hit the </> button above the editor

                I have fixed the prior two

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy