[apps/regression] Add X bar and Y bar

This commit is contained in:
Léa Saviot
2019-01-23 15:56:04 +01:00
committed by Émilie Feral
parent 43031928c3
commit ef4725f8b9
2 changed files with 4 additions and 7 deletions

View File

@@ -121,8 +121,8 @@ void GraphController::reloadBannerView() {
double x = m_cursor->x();
// Display a specific legend if the mean dot is selected
if (*m_selectedDotIndex == m_store->numberOfPairsOfSeries(*m_selectedSeriesIndex)) {
constexpr static char legX[] = {'X'/*TODO LEA Ion::Charset::XBar*/, '=', 0};
legend = legX;
// \xCC\x84 represents the combining bar ' ̄'
legend = "x\xCC\x84=";
x = m_store->meanOfColumn(*m_selectedSeriesIndex, 0);
}
numberOfChar += strlcpy(buffer, legend, bufferSize);
@@ -138,8 +138,8 @@ void GraphController::reloadBannerView() {
legend = "y=";
double y = m_cursor->y();
if (*m_selectedDotIndex == m_store->numberOfPairsOfSeries(*m_selectedSeriesIndex)) {
constexpr static char legY[] = {'Y' /*TODO LEA Ion::Charset::YBar*/, '=', 0};
legend = legY;
// \xCC\x84 represents the combining bar ' ̄'
legend = "y\xCC\x84=";
y = m_store->meanOfColumn(*m_selectedSeriesIndex, 1);
}
numberOfChar += strlcpy(buffer, legend, bufferSize);

View File

@@ -145,9 +145,6 @@ uint32_t CodePoints[] = {
0x1d422, // 𝐢 // MATHEMATICAL BOLD SMALL I"
// Apostrophe
// Xbar
// Ybar
};
int NumberOfCodePoints = sizeof(CodePoints)/sizeof(CodePoints[0]);