Hello,
the following code used to work in version 6.3 to display squares of auto color (Chart::DataColor + 1, 2, 3...etc). But it appears stop working in version 7. The squares are not shown.
ostringstream legendText;
legendText << "<*block*><*img=@square,width=8,color=" << std::hex << Chart::DataColor << "*> test1 <*img=@square,width=8,color=" << std::hex << (Chart::DataColor + 1) << "*> test2<*/*>";
t = d->text(legendText.str().c_str(), "arial.ttf", 8); |