Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secondary state value is always 0.0 #83

Open
armanTabib opened this issue Aug 8, 2023 · 2 comments
Open

Secondary state value is always 0.0 #83

armanTabib opened this issue Aug 8, 2023 · 2 comments

Comments

@armanTabib
Copy link

I've defined my KChartWidget as following:

KChartWidget(
                datas,
                chartStyle,
                chartColors,
                isLine: isLine,
                onSecondaryTap: () {
                  print('Secondary Tap');
                },
                isTrendLine: _isTrendLine,
                mainState: _mainState,
                volHidden: _volHidden,
                secondaryState: _secondaryState,
                fixedLength: 5,
                timeFormat: TimeFormat.YEAR_MONTH_DAY,
                translations: kChartTranslations,
                showNowPrice: _showNowPrice,
                //`isChinese` is Deprecated, Use `translations` instead.
                isChinese: isChinese,
                hideGrid: _hideGrid,
                isTapShowInfoDialog: true,
                verticalTextAlignment: _verticalTextAlignment,
                maDayList: [1, 10, 100],
              ),

No matter what secondary state I use, it is always 0. I've manipulated all possible properties, and for asks and bids even, I've generated random values but none of these made any change in the secondary state value.
P.S: I have zero financial knowledge about these values.

@mafanwei
Copy link
Collaborator

I think there is a problem with the data. Can you check your data?

@armanTabib
Copy link
Author

I think there is a problem with the data. Can you check your data?

I have checked the data. It is real world data and what ever it is, I think it cannot be zero all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants