Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50544

Add Candlestick chart to Qt Charts module

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P5: Not important
    • 5.8.0
    • None
    • Charts
    • None
    • facc2941efbfb8c9f40e363f0ea881653f6b4393

    Description

      TODO:

      • Implement all the necessary classes for Candlestick chart (QCandlestickSet, QCandlestickSeries, QCandlestickModelMapper, etc)
      • Add candlestick chart example
      • Add QML candlestick chart example
      • Add autotests
      • Add candlesticktester for manual tests
      • Write documentation

      Usage examples:

      Example1.qml
      CandlestickSeries {
          id: candlestickSeries
          name: "Acme Ltd."
          increasingColor: "green"
          decreasingColor: "red"
      
          CandlestickSet { timestamp: 1435708800000; open: 6.90; high: 6.94; low: 5.99; close: 6.60 }
          CandlestickSet { timestamp: 1435795200000; open: 6.69; high: 6.69; low: 6.69; close: 6.69 }
          CandlestickSet { timestamp: 1436140800000; open: 4.85; high: 6.23; low: 4.85; close: 6.00 }
          CandlestickSet { timestamp: 1436227200000; open: 5.89; high: 6.15; low: 3.77; close: 5.69 }
          CandlestickSet { timestamp: 1436313600000; open: 4.64; high: 4.64; low: 2.54; close: 2.54 }
      }
      
      Example2.qml
      CandlestickSeries {
        id: candlestickSeries
        name: "BTC/USD exchange rates”
      
        HCandlestickModelMapper {
          model: btcusdModel // QAbstractItemModel derived implementation
          timestampColumn: 9
          openColumn: 4
          highColumn: 6
          lowColumn: 7
          closeColumn: 5
          firstSetRow: 0
          lastSetRow: 50
        }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-50544
        # Subject Branch Project Status CR V

        Activity

          People

            speqtr Alexander Mishin
            speqtr Alexander Mishin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 16 weeks
                16w
                Remaining:
                Remaining Estimate - 16 weeks
                16w
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes